I have the problem of testing my builds as if it was a CRAN build. See the following Travis log:
I set the NOT_CRAN to “false” in the travis.yml file and this seem to work (see row 889 in the log file), but during the testing of the package this is changed to “true”, see row 1182.
Maybe it would be possible to include how to test packages as CRAN on travis R documentation page, since I guess I’m not the only one with this interest. =)