Each R command execution fails because of no "devtools" package installed

,

I’ve just started to use Travis on my R package repository, but it seems each R command execution fails because of no devtools installed.

For example standard R session info gives:

R session information
$ Rscript -e 'sessionInfo()'
Error in library(devtools) : there is no package called ‘devtools’
Execution halted

It seems like each new R session calls library('devtools') so it is even impossible to install it without an error.
Here is my build link.

If you check for builds history you can see approaches I’ve taken to force the problem but none of them fixed the problem (many stackoverflow and GH threads suggested to clear cache but this is the first build so no cache is available).

Thank you for your help.

Krystian

I think you have already discovered this, but you had a project level .Rprofile that was loading devtools. https://github.com/ModelOriented/xspliner/commit/d654e36525b5d97f7ab320354ed28aa9edaecca0

Yes I managed to found the reason. I’m sorry for not giving an update.
We can close the issue now.

Thank you.