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

install_deps doesn't fail if package installation fails #74

Open
krlmlr opened this issue Nov 8, 2013 · 8 comments
Open

install_deps doesn't fail if package installation fails #74

krlmlr opened this issue Nov 8, 2013 · 8 comments

Comments

@krlmlr
Copy link
Contributor

krlmlr commented Nov 8, 2013

https://travis-ci.org/krlmlr/ProjectTemplate/builds/13674885

use options(warn=2)?

@craigcitro
Copy link
Owner

that sounds right to me, but maybe we should ask @hadley if that's going to cover everything.

@hadley
Copy link
Contributor

hadley commented Nov 8, 2013

That seems like a reasonable approach to me, but I don't know enough about the behaviour of install.packages to say for sure (there's probably no foolproof way to capture every error scenario)

@craigcitro
Copy link
Owner

@krlmlr would you be willing to patch this in and try it on that same repo when you get a chance?

@krlmlr
Copy link
Contributor Author

krlmlr commented Nov 24, 2013

Same for this -- we could extend our .travis.yml to test that installing, say, rJava, without installing its prerequisites.

@craigcitro
Copy link
Owner

So just adding the warn=2 seems to break anyone who's depending on non-CRAN packages, so that's no good. We're going to have to think of something slicker.

@craigcitro
Copy link
Owner

@krlmlr
Copy link
Contributor Author

krlmlr commented Nov 24, 2013

I guess that's just another breaking change -- people will have to move the code that installs non-CRAN repos before install_deps. Good thing is, we can estimate the damage done in advance: https://github.com/search?l=YAML&q=travis-tool.sh+install_deps&ref=advsearch&type=Code .

@craigcitro
Copy link
Owner

that won't work - it also fails for non-cran r repos. I think a better
failure message is easier here.


-cc

sent from my phone
On Nov 24, 2013 1:58 PM, "Kirill Müller" notifications@github.com wrote:

I guess that's just another breaking change -- people will have to move
the code that installs non-CRAN repos before install_deps. Good thing is,
we can estimate the damage done in advance:
https://github.com/search?l=YAML&q=travis-tool.sh+install_deps&ref=advsearch&type=Code.


Reply to this email directly or view it on GitHubhttps://github.com//issues/74#issuecomment-29167410
.

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

3 participants