[R] An easy question on package building/installation

jpm miao miaojpm at gmail.com
Wed Mar 18 09:01:18 CET 2015


Hi,

   I try to build a package myself on RStudio. The command
"package.skeleton" is successfully run, but the command "build" is not. In
my case, the username and the package name are both "abcd".

   Error message:

> R CMD build abcd

Error: unexpected symbol in "R CMD"

>

    Could someone help me to write a correct "build" command?

    Thanks! Full log:


> setwd("D:/0B/R/pkg-abcd")

> setwd("D:/0B/R/pkg-abcd")

> package.skeleton(name="abcd")

Creating directories ...

Creating DESCRIPTION ...

Creating NAMESPACE ...

Creating Read-and-delete-me ...

Saving functions and data ...

Making help files ...

Done.

Further steps are described in './abcd/Read-and-delete-me'.

  > setwd("D:/0B/R/pkg-abcd/abcd")

> dir()

[1] "data"               "DESCRIPTION"        "man"

[4] "NAMESPACE"          "R"                  "Read-and-delete-me"

>



> .libPaths()

[1] "C:/Users/abcd/Documents/R/win-library/3.0"

[2] "C:/Program Files/R/R-3.0.1/library"

>



> R CMD build abcd

Error: unexpected symbol in "R CMD"

> R CMD build C:\Users\abcd\Documents\R\win-library\3.0

Error: unexpected symbol in "R CMD"

> R CMD INSTALL -1 C:/Users/abcd/Documents/R/win-library/3.0 abcd

Error: unexpected symbol in "R CMD

	[[alternative HTML version deleted]]



More information about the R-help mailing list