similar to: help in R calling C function

Displaying 20 results from an estimated 20000 matches similar to: "help in R calling C function"

2004 Jun 27
1
Re: help in R calling C function (Lei Liu)
> Message: 4 > Date: Sun, 27 Jun 2004 03:18:43 -0400 > From: Lei Liu <liulei at l.imap.itd.umich.edu> > Subject: [R] help in R calling C function > To: r-help at stat.math.ethz.ch > Message-ID: <5.1.0.14.1.20040627030746.014936b8 at l.imap.itd.umich.edu> > Content-Type: text/plain; charset="us-ascii"; format=flowed > > Hi there, > > I want
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
2001 Sep 19
4
Building a dll for windows
This is a recurrent question but could not find the answer in the documentation. I want to build a dll for windows from a fortran program to be loaded with dyn.load. I can do it easily for linux with: g77 -shared -o foo.dll foo.f The g77 compiler (mingw-1.01) for windows does not recognise the -shared option. In windows the Writing extensions manual tells to use Rcmd SHLIB but I can't
2004 Nov 28
1
Version names
I have Windows XP build scripts that look for R in a variety of folders and if multiple ones are found, takes the last one. For example, I currently have the following in \Program Files\R : rw1060 rw1062 rw1071 rw1071beta rw1081 rw1090 rw1090dev rw1091 rw1091pat rw2000 rw2001beta Note that it currently correctly gets rw2001beta but if I add rw2001 then it will not pick it up since
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;
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
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 Nov 16
2
Error when calling a dll procedure
Dear experts, I am a beginner in R and try to build dlls (Win XP, MinGW, R 1.7.1). So far, I have managed to create and to use some dlls with C code which worked properly. Now I am stuck with a dll containing C++ code. I have included some part of the source code (of an implementation of a function to find all primes below a given numeric value -> its just an exercises to get familar with
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
2003 Jun 18
4
(no subject)
Hi all, I'm new to R and am trying to create a dll in order to be able to use the "dyn.load" function with a fortran script. I have a windows OS, have installed perl and the Path is recognized. I have also installed R 1.70 including the src (source code) folder. But when I attempt to create the dll by excecuting "Rcmd SHLIB [-o autologdll] combo.f", in the windows
2001 Oct 18
3
Rcmd SHLIB in rw1031 (R for Win)
Thanks for the answers on readme.packages. I have installed Rw1031 from SetupR.exe including the option for compiling source files and, following directions in www.stats.ox.ac.ul/pub/Rtools, have installed: -tools.zip -Perl (Active Perl) -mingw-1.1.tar.gz -copied sh.exe to c:\bin\sh.exe After Perl installation, its directory is added to my path. I have also added the directory where the R
2006 Feb 20
2
help on dyn.load()
Hi, I used .C to call the C functions inside R. Everything works fine on the linux sever. I installed cygwin on my windows xp x64 platform and used rcmd shlib xxx.c to compile. Everything works fine till now and xxx.dll is generated. But when I use dyn.load("xxx.dll") in R, it will open another R window and the original R window becomes "Not responding", nothing loaded in
2023 Aug 31
1
Problems with installing R packages from source and running C++ in R, even on fresh R installation
> 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, compiled into a *.dll using R CMD SHLIB and then loaded > using dyn.load(). > > Write the following into a file named hello.c: > > #include <R.h> > #include <Rinternals.h> > SEXP hello(void) {
2023 Aug 31
1
Problems with installing R packages from source and running C++ in R, even on fresh R installation
? Thu, 31 Aug 2023 14:01:54 +0000 Christophe Bousquet <chr_bousquet at protonmail.com> ?????: > So when I run the commands, I get this output. I honestly have no > clue whether this can be considered as something useful or not :-/ > > ``` > > tools:::.shlib_internal(c('-n', 'hello.c')) > make cmd is > make -f
2002 Dec 18
4
Running R on a Local Area Network
A couple of months ago I downloaded R 1.6.0's binary for Windows, which I have since been using without any particular problem, that is on one machine running Windows 98. Last week I set up a local network and have since tried to use R remotely, i.e. R is installed on the previous machine and nowhere else. On the client's side, the GUI opens correctly and allows me to do simple
2004 Oct 17
3
question about Rcmd SHLIB
Dear R-people: I tried to create a shared library in Windows XP. However I got error messages which attached below: C:\lasso>Rcmd SHLIB all.f cox.f gcc all.o libR makeMakedeps all.dll -o all gcc.exe: libR: No such file or directory gcc.exe: makeMakedeps: No such file or directory make: *** [all] Error 1 I have created shard libraries successfully before. Also for the same fortran files:
2001 Dec 11
2
Rcmd SHLIB problem
Dear R-help, I'm having problem creating a dll using Rcmd SHLIB with R-1.3.1 on WinNT4: C:\TEMP>Rcmd SHLIB tryf.o make[1]: `libR.a' is up to date. make: *** No rule to make target `'tryf.o', needed by `tryf.a'. Stop. C:\TEMP>Rcmd SHLIB tryf.f make[1]: `libR.a' is up to date. make: *** No rule to make target `'tryf.o', needed by `tryf.a'. Stop. I
2001 Dec 11
2
Rcmd SHLIB problem
Dear R-help, I'm having problem creating a dll using Rcmd SHLIB with R-1.3.1 on WinNT4: C:\TEMP>Rcmd SHLIB tryf.o make[1]: `libR.a' is up to date. make: *** No rule to make target `'tryf.o', needed by `tryf.a'. Stop. C:\TEMP>Rcmd SHLIB tryf.f make[1]: `libR.a' is up to date. make: *** No rule to make target `'tryf.o', needed by `tryf.a'. Stop. I
2010 Aug 23
5
trajectory plot (growth curve)
Hi there, I want to make trajectory plots for data as follows: ID time y 1 1 1.4 1 2 2.0 1 3 2.5 2 1.5 2.3 2 4 4.5 2 5.5 1.6 2 6 2.0 ... That is, I will plot a growth curve for each subject ID, with y in the y axis, and time in the x axis. I would like to have all growth curves in the same plot. Is there