similar to: compling C code in R for Windows

Displaying 20 results from an estimated 9000 matches similar to: "compling C code in R for Windows"

2002 Aug 24
3
link my own C library using Rcmd SHLIB
Hi All, I have already used gcc to creat a library, for example, it is called "test.a", which includes many c objects. How to link my main "a.c" function to this library when I used Rcmd SHLIB to complier my main c program? I tried "Rcmd SHLIB a.c test.a". It does not work this way. Does anyone have idea about this? Thanks, Xiaoping
2003 Feb 22
1
printf() in C
Hi, 1. I'm making an R package in Windows 2000, and I'm including the .c files. Everything works fine, except that when I call the printf() function in the C code, it doesn't actually print anything. I'm including the following header files: #include <stdio.h> #include <math.h> #include <sys/types.h> #include <stdlib.h> and I have the recommended MinGW
2003 Sep 29
2
problem in integrating C routine with R on windows XP
Hi All, I a C function code, which has been successed in integrating with Splus on Unix. Now I want to move it on windows. So I want to integrate this C function with R on windows XP. I download tools.zip and saved it in c:\bin directory, download MinGW and saved it in c:\MinGw directory, download Perl and saved it in c:\Perl directory. My path is set as:
2003 Jan 31
2
Testing ``<=" in R
Hello, I've encountered the following: > n_500 > tau_.95 > (n*(1-tau)) [1] 25 > (n*(1-tau))<=25 [1] FALSE > (n*(1-tau))==25 [1] FALSE I'm using UNIX R Version 1.4.0, and also tested in out in Windows 1.6.0. Is this a bug? Masha
2003 Jun 13
1
Problem with Rcmd SHLIB
Dear R-helpers, i am trying to make a shared library from a Fortran subroutine, and i therefore used (after reading the documentation): Rcmd SHLIB forfile.f #(R1.70, Win2000) And the error is: " 'perl' is not recognized as an internal or external command,operable program or batch file." So i went ahead and tried to install Perl (from the suggested website in
2002 Nov 07
3
Rcmd? Where?
Hello, I got R 1.6.0 for windows and I need Rcmd, which was not included. Where can I get it? (I have to start R and give the name of the file with the R-commands on the command line, so that R is invoked together with its command-file "todo.R". Do I really need Rcmd for that? To write "Rterm todo.R" did not work.) Richard -- Richard M?ller - Am Spring 9 - D-58802
2002 Sep 30
2
"Rcmd SHLIB" does not work
R-users E-mail: r-help at stat.math.ethz.ch Hi! I would like to produce DLL files to be linked to R objects on Windows98SE. The source files are written in Fortran77. I input the command below on R console. Rcmd SHLIB aaa.f The result is: Error: syntax error Does this mean that "Rcmd SHLIB aaa.f" contains symtax error, or "aaa.f" contains it? Or do I need to do
2001 Aug 15
2
FORTRAN in R
Hi, Can anyone tell me what might cause this error message? Error in .Fortran("swallocate", as.double(mtx), as.double(wt), as.integer(n), : C/Fortran function name not in load table This occurs when I copied the Splus stepwise() function into R. I can source into R fine, but when I need to call that function on some dataset, I got the above error message. Platform
2003 Sep 04
7
Comparison of SAS & R/Splus
I am one of only 5 or 6 people in my organization making the effort to include R/Splus as an analysis tool in everyday work - the rest of my colleagues use SAS exclusively. Today, one of them made the assertion that he believes the numerical algorithms in SAS are superior to those in Splus and R -- ie, optimization routines are faster in SAS, the SAS Institute has teams of excellent numerical
2002 Jul 07
1
Obtaining Rcmd.exe for Windows
Hi, I've installed the latest version of R by running SetupR.exe, but it doesn't come with Rcmd.exe. Is there an easy way to obtain this file without going through compiling the source code and all that? Thanks, Fred -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send
2002 Aug 04
3
Fortran DLLs
Hello everyone, I'm using R 1.5.1 on Windows. I chose the option 'Install Source Files' when installing R. The code below shows my use of the command SHLIB and the error I get. C:\R\rw1051\bin>Rcmd SHLIB C:\Stage 9 (Phase 2)\cir3int.f 'perl' is not recognized as an internal or external command, operable program or batch file. I'm assuming I'm missing some perl
2002 Feb 27
3
BATCH mode
Dear R users I wonder if it is possible to run R code in the batch mode like in Splus (Splus5 scriptfile outputfile). Any hints? Andreas -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the
2005 Apr 27
1
dyn.load(), DLL, Fortran, TLNise software
Dear all, I would like to call TLNise ("Two-Level Normal indipendent sampling estimation") software within R. This software estimates a hierarchical model and it can be download from Philip Everson's website at "http://www.swarthmore.edu/NatSci/peverso1/TLNise/tlnise.htm". The TLNise software consists of: 1) a Fortran source code (tlnisemv1.f) and 2) a Splus code
2003 Jun 18
3
Multiple graph sheets
In Splus the code test.lm <- lm(y ~ x, data = test.data) plot(test.lm) generates a graphics window that contains multiple graph sheets that one may choose from via the "page" tabs at the bottom of the window. Is there a way to do this sort of thing in R? As another example, I have some repeated measures data with continuous outcomes and have been working with the nlme library in
2002 Jun 12
6
Rcmd on Windows
Hi there, I was tryting to use "Rcmd SHLIB --help" on Windows RGui. However it always gives me sytax error message. I wonder whether you have any suggestion. Thanks in advance! Best, Yunda -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help",
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
2005 Jun 23
0
multinomial logistic regression with survey data
Hello, Is there a function/package that can do multinomial logistic regression using survey weights, similar to "svymlogit" in Stata? It appears that only "svyglm" function (which does not allow multinomial response?) is available in the "survey" package. Thank you! Masha Kocherginsky
2003 Sep 09
6
Making R packages
Hi: I am posting this message for a colleague who has a lot of trouble to build an R package on Windows. He did not find a solution to his problems on the R-help archives and hopes that one of the R gurus will be able to help. He has a directory "CO2" which should contain all the required files and directories: DATA: DESCRIPTION MAN: R: README SRC: The following command is
2001 Aug 01
0
Calling rcmd.exe from a CGI
I have a web cgi running on Win NT (version 4, service pack 5) that executes a perl program (call it foo.pl). foo.pl reads and conditions some data files, creates a summary data file for R, and then forks rcmd.exe (version 1.2.2) in BATCH mode (all of this is taking place on an NT box). foo.pl works fine if run from a command line (i.e. there are no apparent bugs in foo.pl and my R program
2002 Jun 17
2
Rgui crashes
My Rgui crashes quite a lot when entering certain characters. I put a freshly extracted msvcrt.dll into the rw1050\bin directory, but this did not fix the problem. Perhaps, as stated in the FAQ section, I need also "put the rw1050\bin directory early in your path" but I do not know how to do it in Windows Me. Please could you give me some help? E. Barahona