purl()
will extract all the R chunks, and you could grep()
for packages there.
How to extract dependencies from an Rmarkdown document
-
10-07-2023 - |
Pergunta
I need to re-knit a long Rmarkdown document (about 3k lines.). But the author used some packages that I don't have. So I need to install them first.
Is there any way to save all or some of my efforts to manually check the whole document?
Solução
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow