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

No R version information

vspinu opened this issue · comments

Thanks Craig for this tool. Great job!

I am probably confused of how it should work, but I don't see session info or even R version anywere. Here is an example with lubridate.

BTW, there are multiple find: cannot search ': No such file or directory in log dump. Not sure if that's the problem.

hey vitalie,

so there are two ways to find the version information:

  1. if you dig through the logs, you can spot which version of the R deb gets installed. in your case, it looks like 3.1.2. this is admittedly a sub-par way to find this information out. ;)
  2. there's also the dump_sysinfo command, which you can use to get a handful of useful info about your R session. currently you have to add a line using this to your .travis.yml, but maybe i should just do that automatically?

(closing for now, but feel free to reopen if those don't work, or you need different info those don't provide.)

Thanks Craig. I searched for the apt-get part but missed it. dump_sysinfo works fine with the exception that it is too long as because of the wrapped lines. Maybe you should add options(width=400) before dump_sysinfo.

bumping the width isn't a bad idea, but i don't know how the travis viewer does with wide lines. (or what the effective width of the tty this is going to is ...)

lemme give it a try.

even 400 isn't nearly enough for the whole contents; is this more readable? https://travis-ci.org/craigcitro/r-travis/jobs/48908381

is this more readable?

Hm. Actually not. The previous version is better. Travis wraps long lines and that makes it less convenient.

yeah, i was thinking the same. does devtools::session_info do better? giving it a shot:
https://travis-ci.org/craigcitro/r-travis/jobs/48928280#L3091-L3104

Yes. It's much more parsimonious and to the point.

You can add dump_devtools_sysinfo job so that people could choose. Also the command R -q -e "devtools::session_info()" gives a cleaner output.

i agree it's the right format -- but unfortunately it only shows loaded packages, not all packages. hmm.

Ideally it should report packages loaded by the test suite. Would it be feassable to capture the output of system_info at the end of run_tests? This of course makes it impossible to use it before run_tests is triggered. Not a big deal, I guess, as this info is useful mostly on test failures.