> -----Original Message----- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Bond, Stephen > Sent: Thursday, September 15, 2011 8:48 AM > To: Uwe Ligges > Cc: r-help@r-project.org > Subject: Re: [R] how to install a locally built package > > Uwe, > > That gave me the same error like CMD install > > install.packages("C:/Temp/mypack_1.0.tar.gz", repos=NULL, > type="source") > > install.packages("C:/Temp/mypack_1.0.tar.gz", repos=NULL, > type="source") > Loading required package: stats > Loading required package: utils > Loading required package: graphics > Loading required package: splines > * installing *source* package 'mypack' ... > ** R > ** preparing package for lazy loading > ** help > Warning: > C:/DOCUME~1/BondStep/LOCALS~1/Temp/Rtmpw5N7dm/R.INSTALL6ccc14e6/mypack/ > man/mypack-package.Rd:33: All text must be in a section > *** installing help indices > Error in Rd_info(db[[i]]) : Rd files must have a non-empty \title. > See chapter 'Writing R documentation' in manual 'Writing R Extensions'. > * removing 'c:/PROGRA~1/R/R-212~1.1/library/mypack' > * restoring previous 'c:/PROGRA~1/R/R-212~1.1/library/mypack' > Warning message: > In install.packages("C:/Temp/mypack_1.0.tar.gz", repos = NULL, type = > "source") : > installation of package 'C:/Temp/mypack_1.0.tar.gz' had non-zero exit > status > > is there a way to skip the Rd part? This is for private use only and > there is no help or data files. > > Thank you. > > Stephen Bond >
If you don't want to actually follow the process to properly build a package, and you only have R code in your "package", then you could simply distribute the R code to your students and have them source() it. Couldn't you? Dan Daniel J. Nordlund Washington State Department of Social and Health Services Planning, Performance, and Accountability Research and Data Analysis Division Olympia, WA 98504-5204 ______________________________________________ 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.