How do I add a pre-build command?
bokov opened this issue · 1 comments
I'm trying to execute an additional installation step without replacing whatever r-appveyor already does by default.
I tried this...
build_script:
- travis-tool.sh install_deps
- Rscript -e 'remotes::install_deps(dependencies = TRUE, upgrade="never", type="source")'
...and it failed: https://ci.appveyor.com/project/bokov/rio/builds/28731939
Then I tried this...
build_script:
- travis-tool.sh install_deps && Rscript -e 'remotes::install_deps(dependencies = TRUE, upgrade="never", type="source")'
...it also failed: https://ci.appveyor.com/project/bokov/rio/builds/28731987
In both cases the error was:
Rscript -e 'remotes::install_deps(dependencies = TRUE, upgrade="never", type="source")'
Error: unexpected end of input
Execution halted
What is the correct syntax for inserting something after the built-in r-appveyor build_script?
Thanks.
I'm not sure how much would this help you, because I was able to get rid of - travis-tool.sh install_deps
part completely. Having said this, the problem I had seemed to be either with spaces or quotation marks. After about a thousand tries I got my code to work by writing (no quotation marks, no spaces too, though I'm only sure about the former causing problems):
- Rscript -e remotes::install_deps(dependencies=TRUE,repos=c(getOption('repos'),remotes::bioc_install_repos()))
In your case this would translate to:
- Rscript -e remotes::install_deps(dependencies=TRUE,upgrade='never',type='source')