[R] Unexpected input while building package in R

R. Michael Weylandt michael.weylandt at gmail.com
Tue May 8 23:11:17 CEST 2012


Can you show us the file that's throwing an error? This suggests
there's something syntactically invalid in  your code, but it's
impossible to say what without seeing it.

Best,
Michael

On Tue, May 8, 2012 at 1:00 PM, abhisarihan <abhisarihan at gmail.com> wrote:
> 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.
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Unexpected-input-while-building-package-in-R-tp4618065.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.



More information about the R-help mailing list