-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
install_github() not installing contents of 'inst' folder #161
Comments
I cannot reproduce this. I would try removing the package folder and running the installation again. After it is done you can use |
Thanks for getting back to me. I've done the above, and it still installs but without the tutorials folder. Here's the full install message:
Our university desktop install is running R 3.5.0 (hence the warnings) but otherwise it looks fine. The package is found where it is supposed to be:
but the tutorial folder is missing:
I will check again with our ITS people to see whether there's any reason at this end why that folder would be prevented from installing. I realise if you can't reproduce the error it's almost impossible for you to suggest anything, but if you have any further thoughts I'd be grateful. |
I am afraid that this fails because of the UNC path, and this is actually an Also, what version of remotes is this? Can you please try the current GitHub version, just in case it is not caused by the UNC path, but something else. |
Thanks. I've just tried with the GitHub release of remotes, same problem. Is there a workaround for the UNC path issue that you know of or could point me towards? |
You can map the UNC path to a drive letter: https://www.howtogeek.com/118452/how-to-map-network-drives-from-the-command-prompt-in-windows/ |
Thanks - I've found some related stuff by searching, and it looks like the issue was raised here too. I'll talk to our system admins and hope they have a solution! Thanks so much for your help - knowing what the problem is is a huge step forwards. Thank you. |
Well, I am not sure it is the UNC path, maybe. |
Just to close the loop on this, turns out the network share is already mapped, and adventr installs correctly by specifying the lib explicitly:
phew. Thanks again - I'm really grateful. |
Great, thanks for letting me know! It is good to know about this issue, we'll see if we can fix it in r-lib/pkginstall. Since it will not be fixed in remotes, I'll close this issue now. |
Sorry to pick this back up, but I also have the same problem years later and seemingly for an unrelated reason. I was just wondering whether anyone had more insights since then. devtools::install_github("MangiolaLaboratory/sccomp", force=T) does not transfer the inst directory. |
@stemangiola It does for me:
|
Yes sorry, I just fixed it. The commit before fix remotes::install_github("MangiolaLaboratory/sccomp@63160d230d10089d5316c5023d11c54e2d7cc74b", force=T) it would not. Sorry to generate confusion. My problem was the addition of files in the .Rbuildignore without setting the end-of-string character, so it was capturing too many files, and inst was ignored as "empty" checking for empty or unneeded directories
Removed empty directory ‘sccomp/inst/stan’
─ building ‘sccomp_1.99.9.tar.gz’ |
I have a package of r tutorials written in learnr (adventr) that I deploy through github.
In case you're not familiar with learnr, each tutorial sits in its own folder within a folder called tutorials in the 'inst' folder of the package. For example, the tutorial called 'adventr_01' sits in inst > tutorials > adventr_01
When you install, the tutorials folder should be installed within the top level of the package (as with any folder within inst). This is what happens using install_github("profandyfield/adventr") on my personal mac and laptop (and indeed others who I know use then package). However, I recently stumbled across an issue when trying to install this package on my university teaching computers (Windows 10). These computers have a desktop install of RStudio, but packages are installed in the user directory, not the usual
C:/PROGRA~1/R/.....
directory. For example, here's what I get when I try to install my package using install_github:`
None of the above seems odd, and that's what happens when packages are installed from CRAN. When I look in
Documents/R/win-library/3.5
I see a folder with my adventr package as expected BUT the contents of theinst
folder are not there. In other words, the install appears fine at face value except that there is notutorials
folder in the package folder - the contents of 'inst' have not been copied toDocuments/R/win-library/3.5/adventr
as they should be.When I try to run a tutorial I get an error that it doesn't exist (obviously, because it doesn't). it seems to me it might be a problem resulting from the library being created in a location other than the default. Is this a remotes issue or a me being stupid issue? Is there any obvious reason why the 'inst' folder is being ignored at install? Apologies if this is a dumb question - I'm fairly new to packages and stuff ... Thanks very much for any suggestions you have.
The text was updated successfully, but these errors were encountered: