[R] Porting "unmaintained" packages to post R 2.10.0 era
Uwe Ligges
ligges at statistik.tu-dortmund.de
Thu Jun 16 15:38:12 CEST 2011
On 16.06.2011 14:46, Ben Rhelp wrote:
> Hi all,
>
> I am trying to re-compile some "unmaintained" (it seems) packages, namely rSoNIA
> and dynamicnetwork from:
> http://csde.washington.edu/~skyebend/rsonia/rsoniaDemo/
> These packages predates R 2.10.0 so they need to be recompile.
>
> After split the single big file in /man in each packages into a file for each
> function + some minor fix, I successfully manage to recompile and load the
> packages
>
> C:\BenSave\R\BuildRPackage>R CMD build --binary dynamicnetwork
> --binary is deprecated
> * checking for file 'dynamicnetwork/DESCRIPTION' ... OK
> * preparing 'dynamicnetwork':
> * checking DESCRIPTION meta-information ... OK
> * checking whether 'INDEX' is up-to-date ... OK
> * checking for LF line-endings in source and make files
> * checking for empty or unneeded directories
> * building binary distribution
> * installing *source* package 'dynamicnetwork' ...
> ** help
> *** installing help indices
> ** building package indices ...
> ** testing if installed package can be loaded
> Classes for Relational Data
> Version 1.6 created on January 28, 2011.
> copyright (c) 2005, Carter T. Butts, University of California-Irvine
> Mark S. Handcock, University of Washington
> David R. Hunter, Penn State University
> Martina Morris, University of Washington
> For citation information, type citation("network").
> Type help("network-package") to get started.
> * MD5 sums
> packaged installation of 'dynamicnetwork' as dynamicnetwork_0.0-4.zip
>
> * DONE (dynamicnetwork)
>
> I then tried to run the main example, but it seems no function has been built
> (The help for these function is working for some reason).
>
>> fauxDyn<- as.dynamic(fauxSim20, check.renewal=FALSE);
>
> Error: could not find function "as.dynamic"
>
>> launchSonia(fauxDyn);
>
> Error: could not find function "launchSonia"
>
>
>
> Is there a HOWTO/porting guide for packages pre R 2.10.0 to post R 2.10.0?
Actually the main change was the help system for R-2.10.0. The structure
of R code did not change at all.
> I have tried googling for it but I must be looking at the wrong place.
>
> What about "--binary is deprecated"? What is the correct way now?
See the manual. It tells you
R CMD INSTALL --build
will generate a binary package.
Best,
Uwe Ligges
>
> Thanks in advance,
>
> Ben
>
>
> ______________________________________________
> 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