[R] Problems with R package building
kridox at ymail.com
Thu Jun 20 10:09:24 CEST 2013
Did you run "R CMD build test1pkg" in a command prompt window?
On 20/06/13 17:01, jpm miao wrote:
> Following your advice, I install R tools from
> Rtools215.exe <http://cran.r-project.org/bin/windows/Rtools/Rtools215.exe>
> Files are automatically installed here:
> I run the code again and get the message
> Creating directories ...
> Error in package.skeleton(list = c("f", "g", "d", "e"), name = "test1pkg",
> directory 'D:/R/pkgtest/test1pkg' already exists
>> R CMD build test1pkg
> Error: unexpected symbol in "R CMD"
> Is there anything else I need to do ?
> 2013/6/14 Michael Weylandt <michael.weylandt at gmail.com>
>> 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
>>> 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
>>> 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
>>> and provide commented, minimal, self-contained, reproducible code.
> [[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