Closed HedvigS closed 8 months ago
In an effort to find a workaround, I used a function of my own that just installs uninstalled packages and loads everything. Through error messages there, I found that I ought to add "utf8", "Rcpp", "plyr", "data.table" to the pkgs-vector. When I did that, and then used groundhogr again it worked... but I don't know why.
Could someone explain to me what is happening?
Hi
This may be a bug in a new cache system introduced with groundhog 3.2 which makes loading of installed pkgs faster, but to chase it down need to make sure that's the version of groundhog in which it occurred.
FWIW, the top part of your code could be simplified to just this i think:
if (!'groundhog' %in% installed.packages()) install.packages('groundhog')
library('groundhog')
and, set.groundhog.library() creates the folder, no need to do that either.
one more thing, no need to create separate groundhog folders each time. groundhog can save different versions of the same pkg side-by-side
Sorry, as i try to reproduce the error (i haven't been able to) i notice more things
Hi
- Can you confirm the version of groundhog you are using and the operating system?
groundhog 3.1.0 mac os Ventura 13.4.1 (c) Rstudio 023.12.1+402 (2023.12.1+402) R version 4.3.2 (2023-10-31)
- Did you try, before the workaround, just running the groundhog command again as is?
I'm not sure what you mean, I tried running the script bit by bit several times.
- Is your groundhog dir on dropbox or similar?
No. It's just in a git-folder, but no Nextcloud, dropbox, owncloud or anything like that on top.
This may be a bug in a new cache system introduced with groundhog 3.2 which makes loading of installed pkgs faster, but to chase it down need to make sure that's the version of groundhog in which it occurred.
FWIW, the top part of your code could be simplified to just this i think:
if (!'groundhog' %in% installed.packages()) install.packages('groundhog') library('groundhog')
and, set.groundhog.library() creates the folder, no need to do that either.
one more thing, no need to create separate groundhog folders each time. groundhog can save different versions of the same pkg side-by-side
I don't create a new folder each time with dir.create, only if it doesn't exist. i set groundhog folder though, that seems necessary. That's good to know it'd create the folder if it didn't exist, i didn't know that.
Sorry, as i try to reproduce the error (i haven't been able to) i notice more things
oh, if you have groundhog v3.1 I think that's related to a bug that has been fixed already, if you update groundhog I think you will be fine, but let me know otherwise.
oh, if you have groundhog v3.1 I think that's related to a bug that has been fixed already, if you update groundhog I think you will be fine, but let me know otherwise.
Aha, alright. Will do!
Hello! Love the idea, but having weird problem. Here's my code:
Here's what happens next:
I do not understand. What is going wrong when groundhogr is fetching the description files of these packages? Did they not exist on CRAN at the date?