[R] locating rcmd.exe through a batch script

Uwe Ligges ligges at statistik.tu-dortmund.de
Sat May 2 17:27:49 CEST 2009

Santosh wrote:
> Dear R-sians...
> Installing libraries 

Well, I think you want to install a *package* into a library.

> through RCMD INSTALL does not seem to work.. Is the
> following command c
> R CMD install -l "C:\Program Files\R\R-2.8.1\library"

Please use forward slashes or soubled backslashes for 
filenamespecification in R.

> "C:\temp\xpose4_4.0.4_win32
> .zip"
> I get the following error message.
> 'C:\temp\xpose4_4.0.4_win32.zip':Windows binary packages in zipfiles are not
> supported: skipping

Yes, the command line interface is intended for source packages only. 
Use install.packages() from within R in order to isjtall binary packages 
as those shipped in zip files.

Uwe Ligges

> On Fri, May 1, 2009 at 3:51 PM, Santosh <santosh2005 at gmail.com> wrote:
>> Dear R-sians!
>> The following command works fine on Dos Prompt, but not in a windows batch
>> script...
>> dir /S /B C:\Progra~1\R\R* |findstr /I "rcmd.exe" |findstr /I "2.8.1"
>> how do I implement the above in a windows batch script? I tried to use:
>> for /F "usebackq tokens=*" %%i in (`dir /S /B C:\Progra~1\R\R* |findstr /I
>> "rcmd.exe" |findstr /I "2.8.1"`) do @echo %%i
>> and it does not seem to work! Where am I doing wrong?
>> THANKS A TON in advance!
>> Regards,
>> Santosh
> 	[[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.

More information about the R-help mailing list