Closed johannjacoby closed 3 years ago
This is a known limitation, it is due to the flexibilty in grounhog.library() accepting both 'lme4' and lme4 (without quotes). We wanted to emulate both library() and install.packages(), the former accepts the value without quotes but the latter does not.
But the good news is that groundhog_1.2.0 will accept the argument pkg to be a vector, so you will be able to do
touse <- c("readxl","lme4")
groundhog.library(touse, groundhog.day)
Plan is to submit groundhog_1.2.0 to CRAN this week.
Amazeballs! Cool, thank you!
I would like to be able to specify all packages used at the top in a vector (for further use elsewhere) and then go through them using groundhog without having to spell out each package name again. But that does not seem to work. Not sure if I am doing smething wrong, I don't understand the function groundhog.library() enough to be able to see my mistake...
E.g., this works fine:
but this doesn't: