An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130614/77a88196/attachment.pl>
Problems with R package building
7 messages · John, R. Michael Weylandt, Pascal Oettli +1 more
On Jun 14, 2013, at 7:18, jpm miao <miaojpm at 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 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.
6 days later
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130620/d56de046/attachment.pl>
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/
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.weylandt at gmail.com>
On Jun 14, 2013, at 7:18, jpm miao <miaojpm at 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 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.
[[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.
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130620/6580b3f7/attachment.pl>
On 20-06-2013, at 10:01, jpm miao <miaojpm at gmail.com> wrote:
Hi, Following your advice, I install R tools from 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"
You are supposed to run R CMD build test1pkg from the commandline in the directory directly above test1pkg On Windows in a Windows console window. Berend
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130620/ff96bd7c/attachment.pl>