List, I've used package.skeleton to build my package and am trying to check it using R CMD check "." But can't seem to get anything to work. When I try to enter the R CMD command into R I get this message. R CMD check estpkg Error: syntax error, unexpected SYMBOL, expecting '\n' or ';' in "R CMD" I'm not sure if I'm using the wrong syntax or what but I can't get R CMD to check my package from within R. I've tried to use Rcmd in the /bin folder of the R root directory and the DOS windows flashes on my screen and disappears immediately. If someone could help me get over this, I would greatly appreciate it. Cheers, Patrick [[alternative HTML version deleted]]
On 24/09/2007 9:28 PM, Patrick Richardson wrote:> List, > > > > I've used package.skeleton to build my package and am trying to check it > using R CMD check "." But can't seem to get anything to work. When I try to > enter the R CMD command into R I get this message. > > > > R CMD check estpkg > > Error: syntax error, unexpected SYMBOL, expecting '\n' or ';' in "R CMD" > > > > I'm not sure if I'm using the wrong syntax or what but I can't get R CMD to > check my package from within R. I've tried to use Rcmd in the /bin folder > of the R root directory and the DOS windows flashes on my screen and > disappears immediately. If someone could help me get over this, I would > greatly appreciate it.You need to run this from a console (what you call the "DOS window"). Before it will work, you'll need to install a number of tools: see www.murdoch-sutherland.com/Rtools to get them. Duncan Murdoch> > > > Cheers, > > > > Patrick > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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.
On 24 September 2007 at 21:28, Patrick Richardson wrote: | I've used package.skeleton to build my package and am trying to check it | using R CMD check "." But can't seem to get anything to work. When I try to | enter the R CMD command into R I get this message. | | | | R CMD check estpkg | | Error: syntax error, unexpected SYMBOL, expecting '\n' or ';' in "R CMD" | | | | I'm not sure if I'm using the wrong syntax or what but I can't get R CMD to | check my package from within R. I've tried to use Rcmd in the /bin folder Use the source() function from inside R to read the file, and have R parse it. Recent versions of R give you the line number of the offending expression. Hth, Dirk -- Three out of two people have difficulties with fractions.