Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R markdown in sagecell ? #532

Open
jpcaveiro opened this issue May 20, 2020 · 1 comment
Open

R markdown in sagecell ? #532

jpcaveiro opened this issue May 20, 2020 · 1 comment

Comments

@jpcaveiro
Copy link

The output of R in sagecell is complex to manage. I cannot predict what is going to be shown in the output and the solution is to divide R code in several cells with "sagecell" witch is not uniform.

Maybe r markdown with output to HTML is a solution (eventually a link to a PDF).

Is this possible? Is difficult to do?

@novoselt
Copy link
Member

Of course it is possible, but I imagine will take quite a bit of work in SageMathCell setting and it may not be a feasible approach. All R code in SageMathCell is sent as a string through a Sage process and the output is obtained back as a string as well. There is some extra code that automatically shows autogenerated plots, but that's it. For complicated output, you are free to explicitly save it as PDF in the CWD and SageMathCell should provide a link to this file after execution of the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants