craigcitro / r-travis

Tools for using R with Travis (http://travis-ci.org) in lieu of a website:

Home Page:https://github.com/craigcitro/r-travis/wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

devtools error

eddelbuettel opened this issue · comments

See http://stackoverflow.com/questions/20569485/ and it may be a PBKAC by the user. But I would like @krlmlr to take a look as I fear that some of his code may be complicating matters here. Shouldn't it default to devtools from CRAN now?

Update: The post is now deleted. Users with SO rep above a threshold can still see it. In his screenshot, r-cran-devtools appears.

What's the issue about? I don't have enough reputation to see it.

I deleted the SO question here it is:

For my reports package I rely on slidify's dev branch. In the past (up to 5 days ago) I have used:

  - ./travis-tool.sh github_package ramnathv/slidify/tree/dev

As of last night this does work and throws an error. I am not sure why.

Here is an image of the error message:

Click here for the link to the travis.yml. Click here for the travis-ci report. The odd thing is even if I use:

  - ./travis-tool.sh github_package ramnathv/slidify

I get the same error but the same yml passes for qdap. It has been suggested that:

From glancing at it I suspect that by picking r-cran-devtools you get the OLD devtools. 
If you pick current devtools FROM CRAN things may work.

but I am unsure of how to do this.

I would use the r-travis command install_r devtools to install devtools from CRAN. The older form r_install devtools should work as well. The r-travis workers script is not that long and should be comprehensible. There is also a wiki.

If not of this is clear to you, help us by making the documentation better.

@eddelbuettel I tried the suggestion here and also Ramnath's as documented in the linked commit above. The result was the same: https://travis-ci.org/trinker/reports/builds/15406588 I will go to the wiki as you suggest. Thank you.

Hm. Beyond me then. The few times I tried installation from github it worked for me via devtools. Maybe it is a devtools bug, maybe it is a bug with slidify. Minimally reproducible example may help to narrow it down.

- ./travis-tool.sh install_github hadley/devtools
- ./travis-tool.sh install_github ramnathv/slidify@dev

should do the trick. You have to use devtools from GitHub, because the feature hasn't made it into the CRAN version: See r-lib/devtools#378.

@krlmlr That did it. This can be closed now.

Tada. Could someone please update the Wiki accordingly and then close this?

Done, on the front page of the wiki. It might be a bit too much detail, so perhaps better suited for the recipes. @csgillespie: Want to update it?

Looks like this is taken care of. Was sort-of waiting for @craigcitro Craig to close it (as he rules around here) but will do so now.

indeed, i've been distracted by construction at home. (the closet -> fort for kids transition is almost complete, now it's just lighting and paint.)

so it looks like the underlying issue here was that switching from bleeding edge devtools to the CRAN release; have we seen any other fallout in the wild?