Displaying 5 results from an estimated 5 matches for "clink_cppflags".
2008 Jun 04
1
"ignoring environment value of R_HOME" error when installing packages
...ur system. I've traced it, and found a work-
around. Is
this normal? Is there a cleaner solution?
The problem:
During a package installation, the warning message "WARNING: ignoring
environment value of R_HOME" from line 31 of <R_HOME>/bin/R is
accidentally
spliced into the CLINK_CPPFLAGS variable at line 606 of <R_HOME>/bin/
INSTALL.
This prevents the compilation C files. Please note that I have not
set the R_HOME
environment variable; it is undefined in my shell.
- Here are lines 29-32 from <R_HOME>/bin/R:
if test -n "${R_HOME}" && \
test "...
2011 Oct 12
1
Error in Rcpp/inline (Windows XP)
...#39;
>
> fun = cxxfunction(
+ signature(a = "numeric", b = "numeric"),
+ src, plugin = "Rcpp",verbose=T)
>> setting environment variables:
PKG_LIBS = C:/Program Files/R/R-2.13.0/library/Rcpp/lib/i386/libRcpp.a
>> LinkingTo : Rcpp
CLINK_CPPFLAGS = -I"C:/Program Files/R/R-2.13.0/library/Rcpp/include"
>> Program source :
......
Compilation argument:
C:/PROGRA~1/R/R-213~1.0/bin/i386/R CMD SHLIB file6d55374d.cpp 2>
file6d55374d.cpp.err.txt
g++ -I"C:/PROGRA~1/R/R-213~1.0/include" -I"C:/Program
Files...
2012 May 03
1
Setting up a windows system for rcpp
...t;numeric"), body, plugin = "Rcpp",
verbose=T)
x <- 1
y <- 2
res <- add(c(x, y))
res
I get the following error messages:
>> setting environment variables:
PKG_LIBS = C:/Users/Owe/Documents/R/win-library/2.15/Rcpp/lib/x64/libRcpp.a
>> LinkingTo : Rcpp
CLINK_CPPFLAGS = -I"C:/Users/Owe/Documents/R/win-library/2.15/Rcpp/include"
>> Program source :
1 :
2 : // includes from the plugin
3 :
4 : #include<Rcpp.h>
5 :
6 :
7 : #ifndef BEGIN_RCPP
8 : #define BEGIN_RCPP
9 : #endif
10 :
11 : #ifndef END_...
2016 Oct 16
3
compile c++ code in an R package without -g
Hello,
I'm writing an R package that is mainly written in C++. By default, R
CMD INSTALL creates C/C++ flags as follows:
-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat
-Werror=format-security -D_FORTIFY_SOURCE=2 -g
However, my package is fairly large. With debug info compiled into the
library, the generated .so file is over 200MB. Without debug info,
it's about 30MB. I hope
2009 Jul 23
1
problem building R 2.9.1 from source on RHEL 4 (x86_64)
I am building from source on RHEL 4 and have run into a
problem while running "make check":
running code in 'lapack.R' ...make[3]: *** [lapack.Rout] Error 1
make[3]: Leaving directory `/opt/R/R-2.9.1/tests'
make[2]: *** [test-Specific] Error 2
make[2]: Leaving directory `/opt/R/R-2.9.1/tests'
make[1]: *** [test-all-basics] Error 1
make[1]: Leaving