Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rbundler build error: "cannot open file 'startup.Rs': No such file or directory"

I'm running into an issue when building the following package: https://github.com/yoni/rbundler

My test attempts to run rbundler's bundle command on a trivial package which has a single dependency. The test passes on my OSX machine, but fails on my x86_64-redhat-linux-gnu Jenkins server. Both machines are running R 2.15.1 with devtools 0.7.1, which includes this bug fix.

The full test output can be found in this gist.

Here's a short summary of error I'm seeing:

Error in file(filename, "r", encoding = encoding) : 
  cannot open the connection
Calls: local ... eval.parent -> eval -> eval -> eval -> eval -> source -> file
In addition: Warning message:
In file(filename, "r", encoding = encoding) :
  cannot open file 'startup.Rs': No such file or directory
Execution halted

The background for this is that I'm trying to build a dependency management system for R. The idea is that an R project should be able to run without using system-wide or user-wide libraries. Rather, the R project will have it's own library installed under it's root directory.

For my previous Stack Overflow question related to Dependency Management in R, see Dependency management in R

like image 405
yoni Avatar asked Sep 13 '12 16:09

yoni


1 Answers

In my case this issue was caused by the environment variable R_TESTS that was set to startup.Rs

When you execute another R process from within your tests (in my case it was submitted via OGS qsub), the presence of this environment variable causes issues.

like image 78
Roman Zenka Avatar answered Oct 25 '22 02:10

Roman Zenka