Displaying 20 results from an estimated 10000 matches similar to: "compile C code"
2005 Mar 18
4
passing arguments to FUN in lapply
Suppose I have a nx2 matrix of data, X, the following code generate
density estimation for each column and plot them
denlist <- apply(X, 2, density)
par(mfrow=c(1,2))
lapply(denlist, plot)
Does anyone know how to change the main title of each density plot
to "var 1", "var 2" by passing optional argument "main"? I've tried
lapply(denlist, plot,
2004 Mar 05
4
Command Line Expressions
Hi,
Is it possible to run R in command line to evalute R expressions
and return results to stdout, something like
>R CMD -e "R.version$minor"
then you got return
>"8.1"
Or do a simple calculation
>R CMD -e "sin(1.2)"
>0.932039
Thanks.
--
Pingping Zheng
Department of Mathematics and Statistics
Fylde College
Lancaster University
Lancaster LA1 4YF
2014 Oct 08
1
RCMD SHLIB problem in 64 bits
I am trying to build a dll writen in C to be called by R.
Interestingly, when I set the global environment variable PATH to be
"c:\Rtools\bin;C:\Rtools\gcc-4.6.3;C:\Program Files\R\R-3.1.1\bin\*i386*;"
and I typed "RCMD SHLIB Permutation.c" in Cygwin, the dll was compiled and
I can sucessfully call functions after I had loaded it into 32 bits R via
.Call.
However, now I want
2010 Mar 11
2
Problem with rcmd SHLIB
Hi all,
I am trying to call a C function from R (version 2.10.1) on a windows machine.
The C code is in a .c file, I have pasted the code below although I'm very confident that it does not contain any errors (it is not my code), but also, the problem that I have occurs with every .c file that I have tried this with.
I have installed Rtools and included:
C:\Rtools\bin; C:\Rtools\perl;
2005 Feb 15
2
Making a Package
Hello.
I have what I know to be a simple question, but never having done anything like this it is
pretty tough.
I'm trying to write an R package. I have a collection of functions that I loaded into R and
then used package.skeleton(). After editing everything in the resulting folder, call it
NewPackage, I tried to follow along with some instructions I found for Windows users.
I installed
2023 Aug 30
1
Problems with installing R packages from source and running C++ in R, even on fresh R installation
TL:DR there are at least three maybe four ways to address this depending on what you plan to do.
I usually adjust PATH to add Rtools using .Rprofile. But if you do that then if you want to use the command line to invoke R then you need to set the PATH separately when you start the shell. For this reason some people like to set it in the User Environment Variables control panel... but some Rtools
2010 Dec 18
1
Rcmd SHLIB error
I am getting this error message when I try to run Rcmd SHLIB myprog.c.
There appears to be a missing / between etc and i386 in the path. I
am on Windows Vista and am using R version 2.12.1 Patched (2010-12-16
r53864) and just downloaded Rtools 2.12 today. Is this a bug in R?
How can I resolve this?
C:\tmp2>Rcmd SHLIB myprog.c
cygwin warning:
MS-DOS style path detected:
2003 Nov 24
1
R-1.8.0 package directory permissions?
Hello,
I maintain a self-made R package under my own home directory
"~/.R/library" on our university computer net (SunOS 5.8 system).
After updating R to 1.8.0, I found other people cannot access my
package any more. They got this error message:
Error in library(tb, lib.loc = "/home/fs.hpc/43/zhengp1/.R/library") :
This is not a valid package -- no DESCRIPTION exists
I set
2003 Oct 20
1
presentation of spatial-temporal point processes
Hello all,
Would anybody tell me how to present spatial-temoral point processes in R,
for example, I'd like to plot the spatial points in the sequence of
their time domain?
Cheers
--
Pingping Zheng
Department of Mathematics and Statistics
Fylde College
Lancaster University
Lancaster LA1 4YF
UK
2004 Nov 12
1
dyn.load problem
Hi R-Users
I wrote 1 week ago asking about a message that appears when I try run
dyn.load.
I'm trying to do an example in C code from "Writing R Extension" to
learn how to do it.
I have R 2.0.0, Rtools, Perl and MinGW as describe in
http://www.murdoch-sutherland.com/Rtools/ with path sets.
When I use C:\R\rw2000\bin>RCMD SHLIB -o C:/dev-cpp/teste.dll
2023 Aug 30
1
Problems with installing R packages from source and running C++ in R, even on fresh R installation
On Wed, 30 Aug 2023 16:31:20 +0000
Christophe Bousquet <chr_bousquet at protonmail.com> wrote:
> So, yes, it seems possible for R to localize paths related to
> Rtools... But then, I really do not get where things go wrong...
When installing packages containing code to compile, R eventually calls
R CMD SHLIB. Same thing happens with inline C++: it gets stored in a
temporary file,
2004 Nov 07
2
Problem with dyn.load()
Hi!
I am studying C language to run with R 2.0.0. My system (Windows ME /BR) is configured to run RCMD ( I have installed ActivePerl, Rtools and MinGW as indicated in http://www.murdoch-sutherland.com/Rtools/ an with correct path).
I would like run the coded write below named conv.c (Example from "Write R Extension") :
#include <R.h>
#include <Rinternals.h>
2003 Oct 09
3
Source package installation for WinXPpro
Hi
I d like to compile the source code from last Affy package for WinXPpro under
R18beta
however the doc is pretty poor regarding this process...
I went to FAQ R Win then to http://www.stats.ox.ac.uk/pub/Rtools/ and
downloaded in The essentials, tools and Perl 5.8.0, then MingW from www.mingw.org and
I wonder if I need any other stuff from this page ? I m not sure but I dont
think I need the
2008 Mar 31
1
Compile dll in Windows XP
This is my first attempt to call a C function from R. I have installed Rtools,MinGW and Perl and I have included them in my system path. I am trying to compile a toy function that can be called in R but when I type "RCMD SHLIB foo.c" I receive the following message in my Command prompt:
making foo.d from foo.c
make: [foo.d] Error 255 (ignored)
cat: foo.d: No such file or directory
make:
2002 Aug 13
1
Rcmd SHLIB under NT
Hello:
I'm trying to use Rcmd SHLIB to compile a single file, sann.c, to
get sann.dll.
I was able to get
make libR.a
to work, after going into MkRules and changing the line
DLLTOOL=$(BINPREF)dlltool -k --as $(AS)
to read
DLLTOOL=C:/MINGW-1.1/bin/dlltool -k --as $(AS)
But now I get:
C:\rw1051\src\gnuwin32>Rcmd SHLIB sann.c
make: make: Command not found
make: *** [libR] Error 127
2009 Mar 29
3
Eclipse and StatET Howto (also added Subversion, Rtools)
I recently got a RFC on Eclipse and StatET setup from a R-help user, so here
it is.
Note: there may be slight errors of omission in my directions as I am making
these notes after I had a successful install. If you have questions post
here.
Setup tested with Eclipse 3.4.0 on XP 32-bit and Eclipse 3.4.2 on Vista
32-bit.
R 2.9.0 alpha.
Installing StatET:
1. Go to Help > Software Updates...
2002 Oct 21
2
newbie question: call C function from R in Windows XP
Hello,
I need to call an C function MH.c in my R code in Windows XP. I downloaded
the software form http://www.stats.ox.ac.uk/pub/Rtools/ and installed them.
But when I run the command "..\bin\Rcmd SHLIB MH.c", I got message "perl is
not recognized as and internal or external command, operable program or
batch file". How should I do?
As a newbie, I just wonder if there is
2011 Nov 17
2
RV: Reporting a conflict between ADMB and Rtools on Windows systems
De: Rubén Roa
Enviado el: jueves, 17 de noviembre de 2011 9:53
Para: 'Users@admb-project.org'
Asunto: Reporting a conflict between ADMB and Rtools on Windows systems
Hi,
I have to work under Windows, it's a company policy.
I've just found that there is a conflict between tools used to build R packages (Rtools) and ADMB due to the need to put Rtools compiler's
2007 Mar 28
2
changes in behaviour of Rcmd SHLIB since 2.4.0
Dear all,
I have some C code using the zlib uncompress. It compiles fine under Win XP
(with SP2) with R up to 2.3.1 and generates four files (Makedeps, *.d,
*.dll, and *.o):
C:\Data\R-packages\cmg>rcmd SHLIB cmg.c -o cmg.dll
latex: not found
making cmg.d from cmg.c
gcc -IC:/PROGRA~1/R/R-2.3.1/include -Wall -O2 -c cmg.c -o cmg.o
cmg.c: In function `readcmg':
cmg.c:33: warning:
2018 Feb 13
4
Setting the path to Rtools for package compilation on Windows
Hi all,
I'm trying to set up the Windows Rtools toolset for building packages
with compiled code. I installed for Windows R-3.4.3 from CRAN and
installed Rtools-3.4 in a custom location M:\R\R-3.4.3 and
M:\R\Rtools-3.4
Following the instructions, in shell, I set
Path=M:\R\Rtools-3.4\bin;M:\R\Rtools-3.4\gcc-4.6.3\bin;M:\R\R-3.4.3\bin;...
(the ... are other paths irrelevant for R/Rtools).