Skip to content
Prev 45608 / 63424 Next

Rebuild package on R 3.0.0 without source code?

Very nice, thank you! The steps did work. Documentation, demos, examples, functions, external data all load perfectly. For the archive, the step "make ... the correct DESCRIPTION file" only involved copying the binary's DESCRIPTION file and removing the last line ("Built: R 2.14.1...").

To answer Marc's question, the package is not in cran as it's a closed-source R interface package to a proprietary optimization software written in Java (Axioma). I wanted the flexibility to upgrade R even if the vendor decides not to release a new binary package anytime soon. To Duncan's point, agreed! Personally, I generally prefer the open-source optimizers as you can throw tons of CPUs at the problem without running out of software licenses. However, this particular proprietary optimizer is very good at solving quadratically constrained quadratic programs (QCQP), and I haven't yet seen a free R package that can solve this kind of problem (e.g. max q'x - x'Qx subject to x'Qx <= B and Ax=c).

Thanks again!
Robert

-----Original Message-----
From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk] 
Sent: Thursday, April 18, 2013 11:28 AM
To: McGehee, Robert
Cc: R-Devel (r-devel at r-project.org)
Subject: Re: [Rd] Rebuild package on R 3.0.0 without source code?
On 18/04/2013 16:07, McGehee, Robert wrote:
No magic solution, and the following may not work, but it might.

Make a simple package with the correct DESCRIPTION file.  Install that 
somewhere new.  Then use the installed DESCRIPTION file and 
Meta/package.rds to replace the versions you got from 2.14.1.


It is possible to extract the man pages: the key step is 
tools:::fetchRdDB.  On my system

names(tools:::fetchRdDB('/Users/ripley/R/R-devel/library/MASS/help/MASS'))
tools:::fetchRdDB('/Users/ripley/R/R-devel/library/MASS/help/MASS', 'rlm')

work: the layout of the pages is a little odd.