Neotropical bat risk assessments
2010-Sep-26 17:19 UTC
[R] How to update an old unsupported package
Hi all, I have a package that is specific to a task I was repetitively using a few years ago. I now needed to run it again with new data. However I am told it was built with an older version or R and will not work. How can I tweak the package so it will run on 11.1? It was a one-off product and has not been maintained. Is there a way to "unpackage" it and repackage it to work? I tried just changing the date and R version in the DESCRIPTION file but that did not help. Tnx Bruce
On 26.09.2010 19:19, Neotropical bat risk assessments wrote:> Hi all, > > I have a package that is specific to a task I was repetitively using a > few years ago. > I now needed to run it again with new data. > > However I am told it was built with an older version or R and will not > work. > How can I tweak the package so it will run on 11.1?You probably mean R-2.11.1?> It was a one-off product and has not been maintained. > Is there a way to "unpackage" it and repackage it to work?Well, take the source package, run tar xfz packagename_version.tar.gz and you have the sources that you can modify and repackage and reinstall afterwards. See the manual "Writing R Extensions" fir detaiks. Best, Uwe Ligges> I tried just changing the date and R version in the DESCRIPTION file but > that did not help. > > Tnx > > Bruce > > ______________________________________________ > 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.
On Sun, Sep 26, 2010 at 1:19 PM, Neotropical bat risk assessments <neotropical.bats at gmail.com> wrote:> ?Hi all, > > I have a package ?that is specific to a task I was repetitively using a few > years ago. > I now needed to run it again with new data. > > However I am told it was built with an older version or R and will not work. > How can I tweak the package so it will run on 11.1? > > It was a one-off product and has not been maintained. > Is there a way to "unpackage" it and repackage it to work? > > I tried just changing the date and R version in the DESCRIPTION file but > that did not help. > > Tnx > > Bruce >You can: (1) use the old version of R that you previously used and under which it presumably still works. Old versions of R are available on CRAN. or (2) rebuild and install the old package from source: Rcmd INSTALL mypackage_1.1-1.tar.gz If R has changed so much that it will no longer build, install or run under the latest version of R then you will need to fix up the source code and rebuild and reinstall the package. -- Statistics & Software Consulting GKX Group, GKX Associates Inc. tel: 1-877-GKX-GROUP email: ggrothendieck at gmail.com
I am successfully performing a correspondence analysis using the commands: NonLuxury <- read.table("/Users/myUserName/Desktop/nonLuxury.data.txt") ca(NonLuxury) I would like to store the results to a data frame so that I can write them to disk using write.table. I have tried several things such as: df <- data.frame(ca(NonLuxury)) df <- data.frame(data(ca(NonLuxury))) etc. ...but clearly this is incorrect as it generates an error message. Is it possible to store the results of a CA to a dataframe, and if so, what is the correct way to do this? Thanks in advance to all for any info. -Vik
My pleasure. As a part of R team we are always here to help each other. Best Regards, Bhupendrasinh Thakre Sent from my iPhone On Sep 22, 2012, at 1:46 PM, Vik Rubenfeld <vikr at mindspring.com> wrote:> Bhupendrashinh, thanks again for telling me about RWeka. That made a big difference in a job I was working on this week. > > Have a great weekend. > > > -Vik