Marcelo Damasceno wrote: > Hello to all, > > I am try to build a package, I do the follow commands: "R CMD check pack", > "R CMD pack build" and run OK, no errors. I put my shared library in package > subdirectory R, src, but it is not put a shared library ".so" in directory > "/usr/lib/R/library/pack/lib". Below is my code :
Hmmm. You have to INSTALL a package. Shared libraries will be build on the fly while installing. Hence I think you have not read the mnauals carefully enough. You can put C and Fortran files in ./src, the shared library will be installed during R CMD INSTALL pack into the ./lib directory. > dyn.load("pack.so",PACKAGE="pack") > argc<-2 > argv<-c("./test",file1) > .C("main",as.integer(argc),as.vector(argv),PACKAGE="pack") You really want to pass a directory and a filename to your shared library? So, why are you using R in between? Uwe Ligges > What am I doing wrong? > > -- > Marcelo Damasceno de Melo > Graduando em Ciência da Computação > Departamento de Tecnologia da Informação - TCI > Universidade Federal de Alagoas - UFAL > Maceió - Alagoas - Brasil > Projeto CoCADa - Construção do Conhecimento por Agrupamento de dados > +55 82 8801-2119 > > [[alternative HTML version deleted]] > > > > ------------------------------------------------------------------------ > > ______________________________________________ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html