CredibilityLab / groundhog

Reproducible R Scripts Via Date Controlled Installing & Loading of CRAN & Git Packages
https://groundhogr.com/
GNU General Public License v3.0
78 stars 4 forks source link

Github Package cloning doesnt work #118

Open maxpi99 opened 2 months ago

maxpi99 commented 2 months ago

I tried to load a github package with groundhog and i get the following error. When I use the git2r::clone directly to a certain path it works however. grafik

urisohn commented 2 months ago

just to confirm, you use the same clone_path in both cases? it sounds like a folder permission issue, maybe try setting set.groundhog.folder() to one you are sure you have access to to rule that possibility out?

maxpi99 commented 2 months ago

Sorry i forgot that, no its not the same folder. But it shouldnt be a folder permission problem, since all cran packages were installed and load into the same folder grafik grafik

urisohn commented 2 months ago

I think you have a space after the period in the name of the package, could that be the problem? quanteda._sentiment vs. quanteda.sentiment

maxpi99 commented 2 months ago

i checked and it looks like it but there is no space between the period and the name. here it the copied code groundhog.library("github::quanteda/quanteda.sentiment", '2024-05-01',force.install = T)

urisohn commented 2 months ago

ok, thanks for checking. I think it has to do with configuration of git I looked this up and chatGPT had some useful tips, the first time it answers for Unix, i then tell it to swith to windows advice, I think this should take care of it

https://chatgpt.com/share/4ab3891a-0237-4677-9613-00f7e8961804