Skip to content
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

devtools::build_vignettes('rgcam') gives Error: Can't find 'rgcam' #65

Closed
cgnolte opened this issue Nov 14, 2019 · 5 comments
Closed

devtools::build_vignettes('rgcam') gives Error: Can't find 'rgcam' #65

cgnolte opened this issue Nov 14, 2019 · 5 comments

Comments

@cgnolte
Copy link

cgnolte commented Nov 14, 2019

Using R version 3.4.4 on RHEL 7.7, I installed rgcam via

devtools::install_github('JGCRI/rgcam')

This took quite some time. It appeared to complete successfully, but I did get this warning message:
"GitHub repo contains submodules, may not function as expected!"
I then tried to build the vignettes:

library('rgcam')
devtools::build_vignettes('rgcam')

But got the error message:
Error: Can't find 'rgcam'.

@rplzzz
Copy link
Contributor

rplzzz commented Nov 14, 2019

The warning about the submodule is harmless. The submodule contains the source code for the Java code that accesses the GCAM output, but all you really need is the jar-file, which is included.

The second issue is more puzzling. Just to be clear, do you get the error message after running library(rgcam) or after running build_vignettes?

@cgnolte
Copy link
Author

cgnolte commented Nov 14, 2019

I get the error message after running (attempting to run) build_vignettes.

@rplzzz
Copy link
Contributor

rplzzz commented Nov 14, 2019

Ah, I see the problem. build_vignettes wants the path to the root of the package source, not the name of the packages. So, it's looking for a directory called rgcam, and there isn't one. There are two ways you can go about it.

  1. Clone the repository from github, then change into the top folder of the repository and say build_vignettes('.'), or ...
  2. Tell install_github to build the vignettes at install time: install_github('JGCRI/rgcam', build_vignettes=TRUE)

@cgnolte
Copy link
Author

cgnolte commented Nov 14, 2019

Thanks, it is working now. You might want to modify the documentation at the bottom of this page.

@rplzzz
Copy link
Contributor

rplzzz commented Nov 15, 2019

Thanks, @cgnolte, I've created another issue to remind me to do that.

@rplzzz rplzzz closed this as completed Nov 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants