Displaying 20 results from an estimated 7000 matches similar to: "Problem with rcmd SHLIB"
2004 Aug 04
1
load shared object
Hi all,
i have some problem in using shared objects.
I tried the example found in "Writing R Extension", pg. 33
I used the .c file prova.c :
-------------------------------------------------------------------
#include <R.h>
#include <Rinternals.h>
void convolve(double *a, int *na, double *b, int *nb, double *ab)
{
int i, j , nab = *na + *nb - 1;
for (i = 0; i < nab;
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 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:
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
2001 Dec 12
1
RE: [R] Rcmd SHLIB problem
Yes, changing line 67 of SHLIB as Uwe suggested worked:
C:\TEMP>Rcmd SHLIB tryf.f
make[1]: `libR.a' is up to date.
rm -f -f tryf.a
ar cr tryf.a *.o
ranlib tryf.a
------- Building tryf.dll from tryf.a --------
echo LIBRARY tryf > tryf.def
echo EXPORTS >> tryf.def
nm tryf.a > Defs
sed -n '/^........ [BCDRT] _/s/^........ [BCDRT] _/ /p' Defs >> tryf.def
rm -f Defs
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:
2008 Aug 18
1
Converting monthly data to quarterly data
Dear R users,
I have a dataframe where column is has countries, column 2 is dates
(monthly) for each countrly, the next 10 columns are my factors where I have
measurements for each country and for each date. I have attached a sample
of the data in csv format with the data for 3 countries.
I would like to convert my monthly data into quarterly data, finding the
mean over 3 month periods for
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
2008 Oct 23
0
RCMD SHLIB: static libraries and f77 libraries on Windows
Dear R-devel,
I am converting some stand-alone programs (mixed C and F77) to R functions.
I've run into two issues that
I haven't been able to resolve. I've looked at the R-exts manual and
Readme files, but haven't found answers.
(1) Can I link to a (Win32) static library? Is there some option to RCMD
SHLIB that allows this?
I've tried RCMD SHLIB myprog.c -l
2001 Dec 12
0
RE: [R] Rcmd SHLIB problem
Prof. Ripley,
Seems like mine is 629:
c:\home>perl -v
This is perl, v5.6.1 built for MSWin32-x86-multi-thread
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2001, Larry Wall
Binary build 629 provided by ActiveState Tool Corp.
http://www.ActiveState.com
Built 12:27:04 Aug 20 2001
Will try a newer build and see.
Regards,
Andy
> -----Original Message-----
>
2001 Oct 19
0
Rcmd SHLIB: another problem
Well, having made the same installation of Rtools
for rw1031
in a Win98 box (the former one was my Win95 labtop) to get
advantage of significantly more RAM, I try
C:\alobo\Rseg>Rcmd SHLIB test.c
make: /bin/sh.exe: Command not found
make: *** [libR] Error 127
despite the fact that I made a C:\bin
directory and copied sh.exe there.
Actually, if I just type sh in
the MS-DOS window, it works
2001 Dec 12
0
Re: [R] Rcmd SHLIB problem
> From: Prof Brian Ripley [mailto:ripley@stats.ox.ac.uk]
>
> The answer seems to be: make sure you are using the tools in a current
> tools.zip. Neither Andy nor Uwe were. Both the version of
> make.exe and
> cygwin1.dll are critical.
>
> It's also wise to have a fairly recent version of Perl (628
> or later), as
> some earlier ones made errors in calls to
2008 Jul 28
3
speeding up loop and dealing wtih memory problems
Dear All and Mark,
Given a dataset that I have called dat, I was hoping to speed up the
following loop:
for(i in 1:835353){
for(j in 1:86){
if (is.na(dat[i,j])==TRUE){dat[i,j]<-0 }}}
Actually I am also having a memory problem. I get the following:
Error: cannot allocate vector of size 3.2 Mb
In addition: Warning messages:
1: In dat[i, j] <- 0 :
Reached total allocation of 1535Mb: see
2004 Jun 11
2
question about Rcmd SHLIB
Dear R People:
I'm trying to use the Rcmd SHLIB to produce a dll.
Rcmd SHLIB -o test2.dll test2.f
make[1]: *** [libR.a] Error 255
make: *** [libR] Error 2
Where do I go to find out about the "make" errors, please?
I suspect that I might be missing something. I have the tools for creating
new packages, but
maybe I left out something.
This is for R version 1.9.0 on Windows.
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
2004 Feb 29
1
Rcmd SHLIB
Ok, I think I may have a path or permissions problem (below). Anyone know which settings I should check?
When I use
"Rcmd SHLIB <filename>"
I get:
C:\Program Files\R\rw1081\bin>Rcmd SHLIB info.diffusion.c
process_begin: CreateProcess((null), dlltool -k --as as --dllname R.dll --def R.
exp --output-lib libR.a, ...) failed.
make (e=2): The system cannot find the file
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
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
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: