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

Hack needed to workaround devtools-related vignette building failure #1

Open
ldemaz opened this issue Jan 7, 2020 · 1 comment
Open
Assignees
Labels

Comments

@ldemaz
Copy link
Member

ldemaz commented Jan 7, 2020

After upgrading from an earlier version of R I used for building geospaar, I found that unit2-module2 was failing to build when running devtools::install_github (or remotes::...) or devtools::install. The error message that cropped up was the same as in this GitHub issue, and other similar ones. Ultimately, it was this:

> Error in (function (command = NULL, args = character(), error_on_status = TRUE,  : 
>   System command error

The references I have found to this issue, however, seem mostly related to windows installs. In this case, the problem seems to be some interaction with raster package functions applied to *StackBricks. The error thrown above this was along the lines of "incorrect number of layer names". The hack I reference here allows me to get around it, but it is rather ungainly. Note that this issue only occurs when building vignettes. The Rmarkdown knits fine, and there is no error when the original code ran in the chunk.

```{r, echo=FALSE}

The error appeared in another place also. Basically the same error, but to fix it I had to remove quotes from around the vector of function names passed into the lapply.

@ldemaz ldemaz added the bug label Jan 7, 2020
@ldemaz ldemaz self-assigned this Jan 7, 2020
@ldemaz
Copy link
Member Author

ldemaz commented Jan 16, 2020

After another round of package updates, got the same error again. This time, I fixed it by changing this line back to have quoted functions. Unstable.

@LLeiSong can you check the build on Windows, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant