-
Notifications
You must be signed in to change notification settings - Fork 50
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
Add generation of R files to build? #197
Comments
Sounds like a good idea. Can you elaborate how you envision this to work? For example, can you show the commands (or steps) someone would type (into R? the command line?) if this were enabled? |
So, in the makefile, we would have a rule that converts Rmd to R using It is currently possible to obtain an R script from the original Rmd with the following, but it might be a bit cumbersome for novice users. vig <- "LMM-Genetic-Diversity.Rmd"
head <- "https://raw.githubusercontent.com/NESCent/popgenInfo/master/use/"
knitr::purl(paste0(head, vig), documentation = 2) |
I looked into this. I think the main challenge here would be to implement this such that only those It seems most of the documents for which this wouldn't be the case are already recognizable as plain Markdown ( We could just live with their corresponding |
I think setting the rule for all |
Something useful for teaching might be to have the R scripts available for people to download from the website by replacing "html" with "R". This is easily achieved with the command
knitr::purl('$<', documentation = 2)
.I would issue a pull request, but I'm not terribly literate in Make. What do you think, @hlapp?
The text was updated successfully, but these errors were encountered: