Re: [Rd] pure R code package for Windows

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: Mon, 30 Apr 2007 08:51:12 -0400

On 4/29/2007 9:53 AM, Petr Savicky wrote:

>> You can also use the Windows binary build and check service at 
>> http://129.217.207.166 after reading its disclaimer...

>
> Thank you very much. This worked including generating .chm file. The resulting
> package is installable under R GUI on Windows XP, which is sufficient for me.
>
> Let me point out that I did not succeed to install any package
> (including the standard ones like rpart) on Windows using R CMD INSTALL <package>,
> although I have Rtools and perl installed, running and in the path.

On Windows, INSTALL is for installing source packages and is documented this way, but you may not have read the Windows-specific docs. The normal way to install binary packages in Windows is to use the install.packages() function (or the menu item, which calls it).

It should be a simple modification of the INSTALL script to recognize a .zip file, and do a binary install. I wouldn't put this at a high priority: people who are using R CMD INSTALL tend to be package developers, and want to install the source; people who want to install the binaries tend not to have the necessary tools to use R CMD INSTALL.

Duncan Murdoch

>
> The error message for windows binary package rpart from CRAN is:
> Error in Rdinfo(RdFiles[i]) : missing/empty \name field in 'E:/R/rpart/man/rpart.Rd.gz
> Rd files must have a non-empty \name.
>

>> >4. Install the package under Linux and zip the directory
>> >  library/<package> and unzip it in the library directory
>> >  on Windows machine. This works. The package behaves
>> >  correctly. However, I do not think that this is a suggested
>> >  method.
>> 
>> Well, it _is_ a suggested method: see README.packages.

>
> This also produced a package installable by the standard procedure under
> Windows GUI. Thank you for pointing this out. (Again, R CMD INSTALL does
> not work for the resulting package.)
>
> All the best, Petr.
>
> ______________________________________________
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel


R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Mon 30 Apr 2007 - 14:22:33 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 30 Apr 2007 - 14:33:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.