Dear Duncan, I just followed an example to try making a package. The problem is really on the useDynLib. It works after i delete it. Thanks a lot.
2009/12/17 Duncan Murdoch <murd...@stats.uwo.ca> > rusers.sh wrote: > >> Hi, >> I have installed the necessary tools for making a R package under windows >> and am sure these tool have been correctly configured. I am very new to >> try >> writing a package, so the error may be very obvious for you. Forgive me if >> it is too easy. >> My package name is *stam*, and i put it under the folder >> "D:/StatSoft/R/MyPackage/". I have two folders,*R* and *man*. Besides, i >> also have *description* and *namespace** *files. It is a very simple beta >> package. >> >> > > The DESCRIPTION and NAMESPACE files should be specified in upper case, but > that's probably not your problem. I would guess you have a command that > says to load a shared library, e.g. a useDynLib statement in your NAMESPACE, > or a library.dynam in a .First() function. Just delete it, without compiled > code (which would be kept in the src directory) you don't need it. > > Duncan Murdoch > > Following is the error after using "R CMD check mypackage". Thanks very >> much. >> ######### >> * using log directory 'D:/StatSoft/R/MyPackage/stam.Rcheck' >> * using R version 2.10.0 (2009-10-26) >> * using session charset: ISO8859-1 >> * checking for file 'stam/DESCRIPTION' ... OK >> * this is package 'stam' version '1.0-0' >> * checking package name space information ... OK >> * checking package dependencies ... OK >> * checking if this is a source package ... OK >> * checking for executable files ... OK >> * checking whether package 'stam' can be installed ... OK >> * checking package directory ... OK >> * checking for portable file names ... OK >> * checking DESCRIPTION meta-information ... OK >> * checking top-level files ... OK >> * checking index information ... OK >> * checking package subdirectories ... OK >> * checking R files for non-ASCII characters ... OK >> * checking R files for syntax errors ... OK >> * checking whether the package can be loaded ... ERROR >> Error in library.dynam(lib, package, package.lib) : >> shared library 'stam' not found >> Error: package/namespace load failed for 'stam' >> Execution halted >> >> It looks like this package has a loading problem: see the messages for >> details. >> >> ######### >> >> >> > > -- ----------------- Jane Chang Queen's [[alternative HTML version deleted]] ______________________________________________ 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.