R has a package to use Python in its path, https://cran.r-project.org/web/packages/reticulate/vignettes/calling_python.html
So yes, you can make sure that Sage's Python comes first, and then you need to do from sage.all import * to load all Sage classes. On Mon, Apr 5, 2021 at 3:10 PM Carlos Antunes <[email protected]> wrote: > > I have some functions and scripts written in sage that uses symmetric > functions, integer partitions, some poset and matrix stuff. I want to offer > this functions to R users but since the code is large and complicated enough > I'd like to avoid rewriting it. > > Is there any way I can reuse what I have in sage? I know about the existence > of SymPy, but I don't know if that's useful, because even while sympy has > some code for, e.g, dealing with symmetric functions, it is probably not the > same as the sage one, and still forces me rewrite a large amount of code. > > I don't even know if this can actually be done, but it would be really useful. > > Thanks in advance. > > -- > You received this message because you are subscribed to the Google Groups > "sage-support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-support/07a6ede2-73d4-4a0b-8abc-e53fa0f09c18n%40googlegroups.com. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/CAAWYfq0bgA_nXoV3QM8P6i7ZBDoU1eR%3Dbre2nXpooqKpO5XeqA%40mail.gmail.com.
