I ran it in a common window of R.
It's said that I need to run it under DOS. I also open the command window
of DOS

C:\Documents and Settings\miao

,where miao is my username, and ran it, but it doesn't work either. An
error message emerges.

Miao


2013/6/20 Pascal Oettli <kri...@ymail.com>

> Hi,
>
> Did you run "R CMD build test1pkg" in a command prompt window?
>
> Regards,
> Pascal
>
>
>
> On 20/06/13 17:01, jpm miao wrote:
>
>> Hi,
>>
>>     Following your advice, I install R tools from
>> http://cran.r-project.org/bin/**windows/Rtools/<http://cran.r-project.org/bin/windows/Rtools/>
>> Rtools215.exe <http://cran.r-project.org/**bin/windows/Rtools/Rtools215.*
>> *exe <http://cran.r-project.org/bin/windows/Rtools/Rtools215.exe>>
>>
>>
>>     Files are automatically installed here:
>> C:\Rtools
>>
>> 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 ?
>>
>> Miao
>>
>>
>>
>> 2013/6/14 Michael Weylandt <michael.weyla...@gmail.com>
>>
>>
>>>
>>> On Jun 14, 2013, at 7:18, jpm miao <miao...@gmail.com> wrote:
>>>
>>>  Hi,
>>>>
>>>>   I try to build a toy package by running the following codes in an R
>>>> program
>>>>
>>>> require(stats)
>>>> 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",
>>>> path="D:/R/pkgtest")
>>>>
>>>>    Then the program runs smoothly
>>>>
>>>> Creating directories ...
>>>> Creating DESCRIPTION ...
>>>> Creating NAMESPACE ...
>>>> Creating Read-and-delete-me ...
>>>> Saving functions and data ...
>>>> Making help files ...
>>>> Done.
>>>> 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?
>>>
>>> MW
>>>
>>>
>>>     Thanks,
>>>>
>>>> Miao
>>>>
>>>>     [[alternative HTML version deleted]]
>>>>
>>>> ______________________________**________________
>>>> R-help@r-project.org mailing list
>>>> https://stat.ethz.ch/mailman/**listinfo/r-help<https://stat.ethz.ch/mailman/listinfo/r-help>
>>>> PLEASE do read the posting guide
>>>>
>>> http://www.R-project.org/**posting-guide.html<http://www.R-project.org/posting-guide.html>
>>>
>>>> and provide commented, minimal, self-contained, reproducible code.
>>>>
>>>
>>>
>>         [[alternative HTML version deleted]]
>>
>> ______________________________**________________
>> R-help@r-project.org mailing list
>> https://stat.ethz.ch/mailman/**listinfo/r-help<https://stat.ethz.ch/mailman/listinfo/r-help>
>> PLEASE do read the posting guide http://www.R-project.org/**
>> posting-guide.html <http://www.R-project.org/posting-guide.html>
>> and provide commented, minimal, self-contained, reproducible code.
>>
>>

        [[alternative HTML version deleted]]

______________________________________________
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.

Reply via email to