Bay Area useR Group (R Programming Language) Message Board Bay Area useR Group (R Programming Language) Discussion Forum › Unexpected input while building package in R

Unexpected input while building package in R

Abhi
user 31104942
San Francisco, CA
Post #: 1
I am a newbie in R, and I am trying to build an R package but I keep getting an unexpected input error when I try using the build, check or install commands. I used the following command to generate the skeleton:

package.skeleton("test")
After this I went to the command prompt and to the directory with the test folder and ran the command:

R CMD build test
I got the following error message:

Error: 37:1: unexpected input
37:
^
I even tried the check and INSTALL commands on the package and got the same error. I tried googling the error code and the error message but it seems like I should not be getting such an error while building the package itself. Everywhere I checked it seemed like simply typing that command in command prompt should work. I am wondering if anyone knows what I am doing wrong? Thanks for the help.

I am using R 2.15.0 on Windows 7.
Dan M.
user 9501357
San Francisco, CA
Post #: 2
Building packages in R can be both difficult and simple, but simple only after you've learned all the tricky steps. Perhaps someone could do a lightning talk at a Bay Area RUG meeting on the easiest way to build a package.
Powered by mvnForum

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy