Skip to content
Prev 3454 / 10988 Next

[Rcpp-devel] RInside under Windows

Obviously I don't *really* know what I'm
doing, or even *sort of* know what I'm
doing.  But that never stopped me before.

Here is hopefully enough breadcrumbs to
help someone, or even all of us.


I've reinstalled RInside so that I am
starting with the original Makefile.win

*)  There is an extraneous "n" on the first
line (first character) of Makefile.win -- 'make'
doesn't like that.

*)  I need to comment out the command setting
R_HOME and set it in DOS instead.

*)  The next problem is two instances each of:

there is no package called [Rcpp, RInside]

This is because .libPaths() is only finding
the main library and not the one where the
installed packages go.

This is diagnosed by adding a line to Makefile.win:

Rlibpaths := 		$(shell echo '.libPaths()' | $(R_HOME)/bin/R $(R_ARCH) 
--vanilla --slave)

Adding a line to the checkR task:

echo $(Rlibpaths)

And then doing:

make checkR -f Makefile.win

This is the same in 32-bit and 64-bit.

This problem can be remedied by setting the
R_LIBS_USER environment variable.  You can
see what that is with the R command:

Sys.getenv('R_LIBS_USER')


*) Now there is some progress, but not much.

It compiles:
rinside_callbacks0
rinside_module_sample0
rinside_sample0

And gets an error on rinside_sample1:

reopening rinside_sample1.exe: Permission denied

However the three that did compile don't run.  They
all have the error message:

The program can't start because R.dll is missing from
your computer.  Try reinstalling the program to fix
this problem.

This is using Rtools2.14 and R 2.14.1 with
RInside_0.2.6 Rcpp_0.9.9

Pat
On 14/02/2012 17:53, Dirk Eddelbuettel wrote: