[R] Problems with R package building
michael.weylandt at gmail.com
Fri Jun 14 09:10:13 CEST 2013
On Jun 14, 2013, at 7:18, jpm miao <miaojpm at gmail.com> wrote:
> I try to build a toy package by running the following codes in an R
> f <- function(x,y) x+y
> g <- function(x,y) x-y
> d <- data.frame(a=1, b=2)
> e <- rnorm(1000)
> package.skeleton(list=c("f","g","d","e"), name="test1pkg",
> Then the program runs smoothly
> Creating directories ...
> Creating DESCRIPTION ...
> Creating NAMESPACE ...
> Creating Read-and-delete-me ...
> Saving functions and data ...
> Making help files ...
> Further steps are described in 'D:/R/pkgtest/test1pkg/Read-and-delete-me'.
> Since it is a test, I skip all the documentation work and then type
> this line:
>> R CMD build test1pkg
> Error: unexpected symbol in "R CMD"
> I check on the web about the error message. It's said that the command
> should be typed in a DOS window (command prompt window?). However it does
> not work in my DOS window either. Could someone tell me how to process the
> package building process?
Have you installed the Windows Rtools from CRAN and made sure your PATH is set properly?
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help