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

How do I add a pre-build command? #169

Open
bokov opened this issue Nov 9, 2019 · 1 comment
Open

How do I add a pre-build command? #169

bokov opened this issue Nov 9, 2019 · 1 comment

Comments

@bokov
Copy link

bokov commented Nov 9, 2019

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.

@ErdaradunGaztea
Copy link

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')

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