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

Implement 'active' option for py and R scripts #30

Closed
mwouts opened this issue Aug 14, 2018 · 3 comments
Closed

Implement 'active' option for py and R scripts #30

mwouts opened this issue Aug 14, 2018 · 3 comments

Comments

@mwouts
Copy link
Owner

mwouts commented Aug 14, 2018

Implementation should allow round trip conversion of cells that are not active in scripts. For instance cells with jupyter magic (another workaround for that case being #29 ).

@mwouts
Copy link
Owner Author

mwouts commented Aug 17, 2018

Also required for #32

mwouts added a commit that referenced this issue Aug 18, 2018
Introduced a StringParser for detecting quoted lines
'active' option available for .py and .R extensions #30
magic commands ignored when quoted #29
@mwouts mwouts closed this as completed in 7dd10c7 Aug 21, 2018
@danieltomasz
Copy link

I dont know where to left it, but this is interesting for R scripts https://webbedfeet.netlify.com/post/interchanging-rmarkdown-and-spinnable-r/

@mwouts
Copy link
Owner Author

mwouts commented Nov 20, 2018

Hello @danieltomasz , thanks for the reference. The spin format for R scripts in Jupytext is intended to be compatible with knitr's spin function, cf. this test. The jupytext commands for converting R Markdown to R spin are therefore:

jupytext --to Rmd script.R
jupytext --to R notebook.Rmd

Please let me know (i.e. open an issue) if you spot imperfections in the conversion.

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