bmacGTPM / rticles

LaTeX Journal Article Templates for R Markdown
0 stars 0 forks source link

Error in loadNamespace(name) : there is no package called 'roxygen2' #1

Closed bmacGTPM closed 5 years ago

bmacGTPM commented 5 years ago

Fortunately, everything seems to work on my computer when I click Install and Restart.

When I go to Build, Check, I get this message:

==> roxygen2::roxygenize('.', roclets=c('rd', 'collate', 'namespace'))

Error in loadNamespace(name) : there is no package called 'roxygen2' Calls: suppressPackageStartupMessages ... tryCatch -> tryCatchList -> tryCatchOne -> Execution halted

Exited with status 1.

bmacGTPM commented 5 years ago

I have a custom library folder. I need to go to ~/.Renviron and add this line:

R_LIBS_USER=MyFolderName

Then I had to restart R.