search for: preclean

Displaying 12 results from an estimated 12 matches for "preclean".

2009 Oct 20
1
Changing options in R CMD SHLIB
...is determined from the first source or object file. Options: ? -h, --help??? ??? print short help message and exit ? -v, --version??? ??? print version info and exit ? -o, --output=LIB??? use LIB as (full) name for the built library ? -c, --clean??? ??? remove files created during compilation ? --preclean??? ??? remove files created during a previous run ? -n, --dry-run??? ??? dry run, showing commands that would be used Windows only: ? -d, --debug??? ??? build a debug DLL How can I enable -fopenmp for use with R CMD SHLIB? ? ???????????? F?bio Mathias Corr?a Estat?stica e Experimenta??o Agrop...
2016 Jul 28
0
Creating shared object with BASE in EXPORTS on Windows
...on Windows but not Mac or Ubuntu. Minimal examples: //////////////////////////////////////// This code builds fine //////////////////////////////////////// void base(int *nin, double *x) { int n = nin[0]; int i; for (i=0; i<n; i++) x[i] = x[i] * x[i]; } system("R CMD SHLIB foo.c --preclean") c:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-33~1.1/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -std=gnu99 -mtune=core2 -c foo.c -o foo.o c:/Rtools/mingw_64/bin/gcc -shared -s -static-libgcc -o foo.dll tmp.def foo.o -Ld:/Compiler/gcc-4...
2011 Apr 20
2
Include C++ DLL, error in ...: C symbol name not in load table
...do not understand much C, however, I'll give it a try). I am trying to include C++ code into an R routine, where the C++ code looks: #include <iostream> using namespace std; void foo (double* x, double* y, double* out) { out[0] = x[0] + y[0]; } Back in R, the command R CMD SHLIB --preclean -o xplusy works fine resulting in two new files, xplusy.o and xplusy.so. The wrapper in R is: dyn.load("xplusy.so") xplusy <- function(x, y){ .C("foo", as.double(x), as.double(y), out=double(1))$out } xplusy(1, 2) dyn.unload("xplusy.so") Now, dyn.load() works...
2016 Aug 02
0
Creating shared object with BASE in EXPORTS on Windows
...> > //////////////////////////////////////// > This code builds fine > //////////////////////////////////////// > void base(int *nin, double *x) { > int n = nin[0]; > int i; > for (i=0; i<n; i++) x[i] = x[i] * x[i]; > } > > system("R CMD SHLIB foo.c --preclean") > c:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-33~1.1/include" > -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall > -std=gnu99 -mtune=core2 -c foo.c -o foo.o > c:/Rtools/mingw_64/bin/gcc -shared -s -static-libgcc -o foo.dll > tmp.def...
2009 Jun 06
1
Qs on calling R from C
...is program segfaults: % myR/bin/R CMD LINK gcc -I./R-2.9.0/src/include -L./myR/lib64/R/lib -lR hello_r.c -o hello_r > /dev/null % hello_r zsh: segmentation fault hello_r But if instead of compiling the program as a standalone I make it as a shared library, like this: % myR/bin/R CMD SHLIB --preclean hello_r.c > /dev/null ... then the hello() function works fine, when run from within an R session: > dyn.load(paste("hello_r", .Platform$dynlib.ext, sep = "")) > .Call("hello") [1] "Hello, world!\n" The fact that the same function succeeds when r...
2017 Jun 08
5
Matrix multiplication
I need to have all elements of a matrix multiplied by a weight before being post-multiplied by itself, as shown in the forst block of codes below. I can also multiply the matrix by the square root of the weight and then take the outer product. Actually, what I need is this. Denote each row of the matrix by a row vector as xi and each element of the weighting vector as wi. Then, I need the
2011 Mar 07
1
Rmpi fails to install
I try to install Rmpi as root with install.packages("Rmpi"). It fails with: ... checking for x86_64-pc-linux-gnu-gcc -std=gnu99 option to accept ISO C89... none needed I am here /usr and it is OpenMPI Trying to find mpi.h ... Found in /usr/include Trying to find libmpi.so or libmpich.a ... Found libmpi in /usr/lib checking for openpty in -lutil... yes checking for main in -lpthread...
2007 Jul 10
1
cleanup and Makevars
Hi This is a question prompted by the mac version of R, but as I see it, it should have broader interest. These days the CRAN Mac binary per default compiles every package for two architectures. First i386 and then ppc. In between the two compilation runs, any object files in pkgname/src is removed. This cleanup is necessary since otherwise Make would not recompile the object files
2007 Oct 03
1
R-2.6.0 is released
...) column "OK" which flags mirrors that seem to be OK, only those are used by chooseCRANmirror(). The now exported function getCRANmirrors() can be used to get all known mirrors or only the ones that are OK. o R CMD SHLIB gains arguments --clean and --preclean to clean up intermediate files after and before building. o R CMD config now knows about FC and FCFLAGS (used for F9x compilation). o R CMD Rdconv now does a better job of rendering quotes in titles in HTML, and \sQuote and \dQuote into text on Windows. C-LEVE...
2007 Oct 03
1
R-2.6.0 is released
...) column "OK" which flags mirrors that seem to be OK, only those are used by chooseCRANmirror(). The now exported function getCRANmirrors() can be used to get all known mirrors or only the ones that are OK. o R CMD SHLIB gains arguments --clean and --preclean to clean up intermediate files after and before building. o R CMD config now knows about FC and FCFLAGS (used for F9x compilation). o R CMD Rdconv now does a better job of rendering quotes in titles in HTML, and \sQuote and \dQuote into text on Windows. C-LEVE...
2008 Oct 20
2
R 2.8.0 is released
...ION file. o R CMD INSTALL will now fail if it finds a non-executable 'configure' script in the package -- this usually indicates a file system with insufficient permissions. If a non-executable 'cleanup' script is found and either --clean or --preclean is used, a warning is given. DEPRECATED & DEFUNCT o Use in packages of the graphics headers Rdevices.h and Rgraphics.h is defunct: they are no longer installed. o options("par.ask.default") is defunct in favour of "device.ask.default". o...
2008 Oct 20
2
R 2.8.0 is released
...ION file. o R CMD INSTALL will now fail if it finds a non-executable 'configure' script in the package -- this usually indicates a file system with insufficient permissions. If a non-executable 'cleanup' script is found and either --clean or --preclean is used, a warning is given. DEPRECATED & DEFUNCT o Use in packages of the graphics headers Rdevices.h and Rgraphics.h is defunct: they are no longer installed. o options("par.ask.default") is defunct in favour of "device.ask.default". o...