Re: [Rd] Problem to execute a function loading by my package that I created

2011-06-03 Thread Po
Thank you for your help Simon. I resolved my issue. As you told me, I put my C++ program in a separate directory of my package. I create a library with my C++ program. On my package, there are only functions called by R and that uses my program. From: Simon Urbanek [via R] [mailto:ml-node+3570

Re: [Rd] Problem to execute a function loading by my package that I created

2011-06-03 Thread Simon Urbanek
Pauline, since you mentioned Rcpp, you're on the wrong list. I have put some comments below but they assume you're using regular R packaging and not Rcpp. On Jun 3, 2011, at 4:41 AM, Po wrote: > I still look for my problem. > I think that maybe my Makefile is not good. > > In my folder src of

Re: [Rd] Problem to execute a function loading by my package that I created

2011-06-03 Thread Po
I still look for my problem. I think that maybe my Makefile is not good. In my folder src of my package, I put an existing program. In this program, I had already a makefile. So I kept this makefile and I changed. I saw that it's better to have a file Makevars to compile. But I don't know what is

[Rd] Problem to execute a function loading by my package that I created

2011-06-02 Thread Po
Hello, I'm a beginner on R. I should create a package on R. The name of my package is SGeMS. In my package, I have a big program writed in C++. This program compiles in C++. I put this program in SGeMS/src. In my program, I added a header file and a source file named respectively CreateFile.h and