I changed the path to include C:\Program Files\R\R-2.3.1\bin, but Rcmd check [package] just returns an error: 'Rcmd' is not recognized as an internal or external command, operable program or batch file. Any ideas? I want to be able to compile this package on Windows. [[alternative HTML version deleted]]
Don't use the pathname with embedded blanks C:\Program Files\R\R-2.3.1\bin Use the 8.3 equivalent C:\Progra~1\R\R-2.3.1\bin You can find the 8.3 name with dir /x
That's a windows message which says it can't find the command you typed anywhere on its path. If you can't figure it out get Rcmd.bat from batchfiles: http://cran.r-project.org/contrib/extra/batchfiles/ and place that file anywhere on your path. It will find R in the registry and run Rcmd.exe without you having to set any paths. On 10/11/06, John Tillinghast <tilling at gmail.com> wrote:> I changed the path to include C:\Program Files\R\R-2.3.1\bin, but Rcmd check > [package] just returns an error: > 'Rcmd' is not recognized as an internal or external command, operable > program or batch file. > > Any ideas? I want to be able to compile this package on Windows. > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch 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. >
On 10/11/2006 10:18 PM, John Tillinghast wrote:> I changed the path to include C:\Program Files\R\R-2.3.1\bin, but Rcmd check > [package] just returns an error: > 'Rcmd' is not recognized as an internal or external command, operable > program or batch file. > > Any ideas? I want to be able to compile this package on Windows.It sounds as though your path change didn't "take". Remember that if you make the change from the control panel, it only applies to shell windows opened after the change, and if you make the change in a shell window, it only applies to that window. What I do is to have a little command I can execute in a shell window to set the path appropriately (but I'm not using the Windows CMD, I use Cygwin bash, so the details probably wouldn't work for you). But be aware that you'll need more changes to the path to be able to do a check than just adding one thing: see the "Windows toolset" appendix to the Installation and Administration manual. Duncan Murdoch