Actually partly I followed. Here is the more details what I have done so far:
1. Edit the help file skeletons in 'man', possibly combining help files for multiple functions. I have modified with following: \name{fn1} \alias{fn1} \title{ A function. } \description{ A function. } \usage{ A function. } \arguments{ A function. } \value{ A function. } \author{ \bold{Me} \cr \email{m...@me.com} } 2. Edit the exports in 'NAMESPACE', and add necessary imports. Actually I really do not know what I would do here. In the corresponding file, only "exportPattern("^[[:alpha:]]+")" is there. Therefore I put that unaltered. 3. Put any C/C++/Fortran code in 'src'. I do not have any such code 4. If you have compiled code, add a useDynLib() directive to 'NAMESPACE'. Again I do not know what to do, so ingored this step. 5. Run R CMD build to build the package tarball. * Run R CMD check to check the package tarball. I did not follow this step exactly. What I done is, put 'trial3' folder in R/R-2.13.0bin folder (after above modification), from the R-working folder. Then just run R CMD INSTALL trial3. However previously with this job, I could create package effectively. After updating R to the current version my problem starts. Those are not sufficient? Thanks, On Wed, Jun 1, 2011 at 1:09 AM, Duncan Murdoch <murdoch.dun...@gmail.com> wrote: > On 11-05-31 3:36 PM, Nipesh Bajaj wrote: >> >> Dear all, I am having a strage problem while I was trying to build a >> package. Here is my package skeleton: >> >> fn1<- Vectorize(function(x,y,z) { >> return(x + y +z) >> }, vectorize.args = c("x"), SIMPLIFY = TRUE) >> package.skeleton("trial3",namespace = TRUE) > > Did you follow the instructions that package.skeleton printed? > > Duncan Murdoch > >> >> However when I tun "R CMD INSTALL trial3" in CMD, the execution >> stopped with following message: >> >> *** installing help indices >> ** building package indices... >> ** testing if install package can be loaded >> Error: unexpected symbol in "tools:::test_load_package(.............." >> Execution haulted >> ERROR: loading failed............. >> >> I am using R 2.13.0 in Vista with latest Rtools installed. Can >> somebody guide me where I have done wrong? >> >> Thanks, >> >> ______________________________________________ >> 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. > > ______________________________________________ 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.