Displaying 20 results from an estimated 60000 matches similar to: "Problem with Cygwin"
2007 Apr 02
2
Compiling C codes in Windows
Hi All,
I have been struggling to figure out how to compile c codes for R use. I am using Win XP + Cygwin + R binaries.
After I followed all the instructions in " Building R for Windows" from Murdoch's website, I tried to Run something like :
R CMD SHLIB C:\R\test.c , but still didn't get any output.
My first question is, does this mean I already did
2007 Apr 02
2
Compiling C codes in Windows
Hi All,
I have been struggling to figure out how to compile c codes for R use. I am using Win XP + Cygwin + R binaries.
After I followed all the instructions in " Building R for Windows" from Murdoch's website, I tried to Run something like :
R CMD SHLIB C:\R\test.c , but still didn't get any output.
My first question is, does this mean I already did
2005 Sep 28
1
gfortran Makefile for cygwin
Hi all,
I'm porting a package that I've worked on for OS X to Cygwin/Windows.
This package requires a Makefile. My question is, how can I find out
(or what is), the link command?
Here is the OS X Makefile:
RLIB_LOC=${R_HOME}
F90_FILES=\
class_data_frame.f90 \
class_old_dbest.f90 \
class_cm_data.f90 \
class_cm.f90 \
class_bgw.f90 \
class_cm_mle.f90 \
cme.f90
FORTRAN_FILES=\
dgletc.f
2003 Dec 10
0
dyn.load for c code
I am learning how to load C code into R-1.8.0 on Windows 98. To this end I wrote
a small c program, downloaded the tools, perl, and mingw on the "building
R for windows" page, and proceeded to create libR.a & libRblas.a as explained
in the readme.packages. I started with a simple c program called mysum.c that can
be found on:
2011 Sep 15
2
[LLVMdev] LLVMHello pass compile error under Cygwin
Thankyou Takumi,
Without --enable-optimized I get a"File too big" error from the linker:
...
llvm[1]: Linking all LLVMLibs together for LLVM-3.0svn
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld:
/cygdrive/c/Users/Graham/home/projects/llvm_cygwin3/tools/llvm-shlib/Debug+Asserts/LLVM-3.0svn.a.o:
too many sections (59747)
2007 May 13
1
Strange behavior of debugger
Hi, All:
I had some trouble debugging C source dynamically loaded into R , when I issued N in gdb(or insight) , the debugger, instead of moving downward step by step, jumped to strange positions (upward, downward, one step, a few steps away).
To enter the debugger, I issued gdb(insight) Rgui.exe in Cygwin and add this line : asm("int $3"); to my C code. After
entering R, I
2009 Jul 28
1
R --vannilla for install/remove/shlib(Re: R 2.8->2.9 change that breaks some upgrade scenarios)
This is the change I suggested earlier - it should just disable more of user/site customization during package installation/removal, and getting more of R 2.8-like behavior back. Attached and inlined below.
Against svn r48897 (svn HEAD AFAIK).
--------------------------------------------------
diff --git a/src/scripts/INSTALL b/src/scripts/INSTALL
index 42470c2...4c7bae9 100755
---
2011 Jul 18
0
multiple installations of R (in Fedora)
Dear list,
so far I installed new versions of R on top of the old one in default /linux/local/lib64 .
For several reasons (mostly compatibility issues) I would like to change this and to keep older versions still functional/available. Furthermore this should allow to perform installing and testing completely independent of any user still using a precedent version of R, and the switch for users
2008 Apr 07
1
Builind C code for R with cygwin [C1]
Hello,
I would like to build shared lib for R using cygwin environment. After
installing needed tools (mainly perl, make and compilers), I ran
R CMD SHLIB hw.c
But I get the following error :
$ R CMD SHLIB hw.c
c:/PROGRA~1/R/R-26~1.2/src/gnuwin32/MakeDll:82: *** multiple target
patterns. Stop.
Google it didn't give me any hints.
Thanks for your help.
Sylvain Archenault.
2004 Jul 07
2
Win32 & C code
Hi,
I'm trying to get C code working with R. This is my first time writing C
on Windows and I'm making a mess of it. Help!
I'm following the example in Roger Peng's "An Introduction to the .C
interface to R". The C code is:
#include <R.h>
void hello(int *n){
int i;
for(i=0; i < *n; i++) {
Rprintf("Hello, world!\n");
}
}
I seem to be unable
2008 Feb 13
1
R CMD SHLIB help
Hello,
I have been having a great deal of difficulty using R CMD SHLIB to
generate the .so file from my C file. I am using Win XP, and I have
cygwin installed. I updated to the latest MinGW make files in order to
get rid of some error. But I still get a few warnings (shown below), and
no shared file (.so file) produced at the end.
C:\cygwin\home\Deepak>R CMD SHLIB ssa.h
2007 Jan 09
4
A question about R environment
Hi all,
I created environment "mytoolbox" by : mytoolbox <- new.env(parent=baseenv())
Is there anyway I put it in the search path ?
If you need some background :
In a project, I often write some small functions, and load them into my workspace directly, so when I list the objects
with ls(), it looks pretty messy. So I am wondering if it is possible to creat an
2013 Apr 11
1
Cannot find ldfortran (R on Cygwin)
Hi
I am new to Cygwin and Linux.
I installed R under Cygwin as part of the setup
I chose "All" during installation, for all packages. So I have the FULL
installlation of cygwin up and running, including gfortran.
*Under Cygwin, how do I check and configure the path to the various
libraries?*
I am trying below command and it says, cannot find "lgfortran"
But I have installed
2008 Jul 03
1
--enable-BLAS-shlib conflict with --with-lapack in configure?
Dear developeRs,
I'm trying to build R (2.7.1, on an x86_64 running Linux, but I believe
I have observed this on x86 and with earlier versions of R as well)
using external BLAS and LAPACK libraries _and_ generating libR.so,
libRblas.so and libRlapack.so.
Without --enable-BLAS-shlib, configure is able to find and use the
external LAPACK library:
./configure \
2005 Apr 22
1
shared library configuration; Gnome GUI
Hello, everybody:
On a Fedora Core 3 Linux system, I built R-2.1 using an updated version
of the spec file that was used to make the RPMs for version 2.0.1 on the
CRAN system. The build was fine, and packages updates perfectly. Thanks!
Then I got curious about the package gnomeGUI. While trying to build
that, I see errors
=============
* Installing *Frontend* package 'gnomeGUI' ...
2015 Mar 09
0
Fwd: Rstudio R-devel libR.so
Hi,
I forgot
tools/rsync-recommended
before
./configure
Thanks
On Mon, Mar 9, 2015 at 6:51 PM, Kevin Ushey <kevinushey at gmail.com> wrote:
> I believe you need to set the environment variable R_HOME_DIR to the
> path pointing to your R-devel installation before launching RStudio.
>
> On Mon, Mar 9, 2015 at 9:49 AM, Karim Mezhoud <kmezhoud at gmail.com> wrote:
>
2009 Nov 20
1
how to link C code with gsl from R CMD and dyn.load
Hi,
I am writing a function in C that is meant to be called by R. In the C
function, I used a gsl function gsl_stats_mean. The code is as simple as
below
void gsl(double *m, int *dim){
int r, c;
r = dim[0];
c = dim[1];
double mean = gsl_stats_mean(&m[0], 1, r);
Rprintf("mean = %f\n", mean);
}
The C code is succesfully compiled and the output is as follows.
$ R CMD SHLIB
2012 Feb 19
2
include <R.h>
I am trying to add
#include <R.h>
to a .c file in one of my package, so I can call error() without a
complaint about implicit defined function. The src/ has a Makefile, to
build some exec/ files that are needed. Without the include, my Makefile
target
OBJS = $(SRC:.c=.o)
$(PKGNAME).so: $(OBJS) rpcx.h
$(R_HOME)/bin/R CMD SHLIB $(OBJS)
seems to work fine, and I do not need a target
2005 Sep 28
3
gfortran Makefile for windows
Hi all,
(Originally posted to r-help)
I'm porting a package that I've worked on for OS X to Windows.
The package is written in F95 so I need to compile it with gfortran
and link it with gcc4.
I've been trying to build an R with gcc4 without luck so far. If there is
a binary of such a thing info would be appreciated.
This package requires a Makefile. My question is, how can I find
2006 Sep 27
2
How to pass expression as an argument
Hi,
I am writing a function and need to pass a function expression as an argument, for instance,
myfun <- function( express) {
x<- c(1,2,3)
y<-express
}
if I call the above function by myfun( x*2 ), I get 2 as the result, instead of 2,4,6 , could someone help me to
fix this problem ?
Furthermore, is that