Note that there are some explanatory texts on larger screens.

plurals
  1. POProblem with compiling RInside examples under Windows
    primarykey
    data
    text
    <p>I am trying to setup RInside at work where we are forced to use a Windows environment.</p> <p>I have installed <a href="http://www.murdoch-sutherland.com/Rtools/" rel="noreferrer">RTools</a> and downloaded an <a href="http://cran.r-project.org/web/packages/RInside/index.html" rel="noreferrer">RInside binary from CRAN</a>.</p> <p>My R installation resides in <em>c:\R\R-2.12.2</em> so no problems with folders with spaces.</p> <p>I have installed the <em>Rcpp</em> and <em>RInside</em> packages in <strong>R</strong>.</p> <p>I execute the following makefile <em>Makefile.win</em> included in the downloaded <em>RInside</em> binary</p> <pre><code>## -*- mode: makefile; tab-width: 8; -*- ## ## Simple Makefile ## ## TODO: ## proper configure for non-Debian file locations, [ Done ] ## allow RHOME to be set for non-default R etc ## comment this out if you need a different version of R, ## and set set R_HOME accordingly as an environment variable R_HOME := 'cygdrive/c/R/R-2.12.2' sources := $(wildcard *.cpp) programs := $(sources:.cpp=) ## include headers and libraries for R RCPPFLAGS := $(shell $(R_HOME)/bin/R CMD config --cppflags) RLDFLAGS := $(shell $(R_HOME)/bin/R CMD config --ldflags) RBLAS := $(shell $(R_HOME)/bin/R CMD config BLAS_LIBS) RLAPACK := $(shell $(R_HOME)/bin/R CMD config LAPACK_LIBS) ## include headers and libraries for Rcpp interface classes RCPPINCL := $(shell echo 'Rcpp:::CxxFlags()' | $(R_HOME)/bin/R --vanilla -- slave) RCPPLIBS := $(shell echo 'Rcpp:::LdFlags()' | $(R_HOME)/bin/R --vanilla --slave) ## include headers and libraries for RInside embedding classes RINSIDEINCL := $(shell echo 'RInside:::CxxFlags()' | $(R_HOME)/bin/R --vanilla --slave) RINSIDELIBS := $(shell echo 'RInside:::LdFlags()' | $(R_HOME)/bin/R --vanilla --slave) ## compiler etc settings used in default make rules CXX := $(shell $(R_HOME)/bin/R CMD config CXX) CPPFLAGS := -Wall $(shell $(R_HOME)/bin/R CMD config CPPFLAGS) CXXFLAGS := $(RCPPFLAGS) $(RCPPINCL) $(RINSIDEINCL) $(shell $(R_HOME)/bin/R CMD config CXXFLAGS) LDFLAGS = -s LDLIBS := $(RLDFLAGS) $(RBLAS) $(RLAPACK) $(RINSIDELIBS) $(RCPPLIBS) CC := $(shell $(R_HOME)/bin/R CMD config CXX) all : $(programs) clean: rm -vf $(programs) </code></pre> <p>with the command</p> <pre><code>make -f Makefile.win </code></pre> <p>to try an build the standard examples included</p> <p>However, I get the following error:</p> <pre><code>C:\RInside_0.2.3\RInside\examples\standard&gt;make -f Makefile.win make: cygdrive/c/R/R-2.12.2/bin/R: Command not found make: cygdrive/c/R/R-2.12.2/bin/R: Command not found make: cygdrive/c/R/R-2.12.2/bin/R: Command not found make: cygdrive/c/R/R-2.12.2/bin/R: Command not found cygdrive/c/R/R-2.12.2/bin/R: not found cygdrive/c/R/R-2.12.2/bin/R: not found cygdrive/c/R/R-2.12.2/bin/R: not found cygdrive/c/R/R-2.12.2/bin/R: not found make: cygdrive/c/R/R-2.12.2/bin/R: Command not found make: cygdrive/c/R/R-2.12.2/bin/R: Command not found make: cygdrive/c/R/R-2.12.2/bin/R: Command not found make: cygdrive/c/R/R-2.12.2/bin/R: Command not found Wall -s rinside_callbacks0.cpp -o rinside_callbacks0 make: Wall: Command not found make: [rinside_callbacks0] Error 127 (ignored) Wall -s rinside_module_sample0.cpp -o rinside_module_sample0 make: Wall: Command not found make: [rinside_module_sample0] Error 127 (ignored) Wall -s rinside_sample0.cpp -o rinside_sample0 make: Wall: Command not found make: [rinside_sample0] Error 127 (ignored) Wall -s rinside_sample1.cpp -o rinside_sample1 make: Wall: Command not found make: [rinside_sample1] Error 127 (ignored) Wall -s rinside_sample2.cpp -o rinside_sample2 make: Wall: Command not found make: [rinside_sample2] Error 127 (ignored) Wall -s rinside_sample3.cpp -o rinside_sample3 make: Wall: Command not found make: [rinside_sample3] Error 127 (ignored) Wall -s rinside_sample4.cpp -o rinside_sample4 make: Wall: Command not found make: [rinside_sample4] Error 127 (ignored) Wall -s rinside_sample5.cpp -o rinside_sample5 make: Wall: Command not found make: [rinside_sample5] Error 127 (ignored) Wall -s rinside_sample6.cpp -o rinside_sample6 make: Wall: Command not found make: [rinside_sample6] Error 127 (ignored) Wall -s rinside_sample7.cpp -o rinside_sample7 make: Wall: Command not found make: [rinside_sample7] Error 127 (ignored) Wall -s rinside_sample8.cpp -o rinside_sample8 make: Wall: Command not found make: [rinside_sample8] Error 127 (ignored) Wall -s rinside_sample9.cpp -o rinside_sample9 make: Wall: Command not found make: [rinside_sample9] Error 127 (ignored) Wall -s rinside_test0.cpp -o rinside_test0 make: Wall: Command not found make: [rinside_test0] Error 127 (ignored) Wall -s rinside_test1.cpp -o rinside_test1 make: Wall: Command not found make: [rinside_test1] Error 127 (ignored) </code></pre> <p>I have tried with different paths for <strong>R_HOME</strong> but I question my ability to having found the right one. I am new to makefiles, so the error output is not of much help.</p> <p>Hope somebody has some valuable insight to share!</p> <p>Thanks in advance,</p> <p>Christian</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload