How to take advantage of objects created in a Rmarkdown file in another Rmarkdow file

Asked

Viewed 14 times

0

I’m working on a report in Rmarkdown and I need to do another report which is actually a summary of the first.

As it is a synthesis of the first, I need to rescue some objects from the original report.

Export objects as csv or image I think is counterproductive.

It is possible to do this without having to rewrite the codes in the summary file?

  • Utilise save.image(file = "resultadosMarkdownOriginal.RData") in the first file and load(file = "resultadosMarkdownOriginal.RData") in the second is an option? Another way would be to use cache = TRUE and cache.path = "folderDaCache" in the important Chunks of the first file and then load only those that are important.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.