Dear Romain, you are right. Apologies, here is the complete result from your script:
> code <- '#include <Rdefines.h>\nSEXP f(){\n return R_NilValue ; }' > writeLines( code, "test.c" ) > system( "R CMD SHLIB test.c" ) gcc -I"C:/R/R-210~1.1/include" -O3 -Wall -std=gnu99 -c test.c -o test.o gcc -shared -s -o test.dll tmp.def test.o -LC:/R/R-210~1.1/bin -lR > dyn.load( "test.so" ) Error in inDL(x, as.logical(local), as.logical(now), ...) : unable to load shared library 'C:/Documents and Settings/L01359.BCRA/Mis documentos/R/test.so': LoadLibrary failure: No se puede encontrar el módulo especificado. > .Call( "f" ) Error in .Call("f") : C symbol name "f" not in load table > The system(,,,) bit seems to work, but then errors show up Sergio -- View this message in context: http://n4.nabble.com/I-can-t-run-the-example-shown-in-the-inline-package-tp1774328p1819514.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.