Skip to content

Ideas for R and RMD #18

Description

@jaseeverett

Hiya
I had hassles trying to do basic R Markdown due to having many global environment variables and Knit not finding them. I found this info and it worked a treat:
Instead of using the Knit HTML button, type rmarkdown::render("your_doc.Rmd") at the R console. This will knit in the current session instead of a background session.
Save your global environment to an .Rdata file prior to rendering (use R's save function), and load it in your document.
Used option 1 and it saved me a world of grief!

Caching is obviously an option too.. but I found this quick and easy for what I needed.

thanks
Rose

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions