From marc_schwartz at me.com  Thu Apr 18 17:17:16 2013
From: marc_schwartz at me.com (Marc Schwartz)
Date: Thu, 18 Apr 2013 10:17:16 -0500
Subject: [Rd] Rebuild package on R 3.0.0 without source code?
In-Reply-To: <17B09E7789D3104E8F5EEB0582A8D66FF25B068C6A@MSGRTPCCRF2WIN.DMN1.FMR.COM>
References: <17B09E7789D3104E8F5EEB0582A8D66FF25B068C6A@MSGRTPCCRF2WIN.DMN1.FMR.COM>
Message-ID: <5D8AA77B-1666-4541-B995-C7923C492577@me.com>

On Apr 18, 2013, at 10:07 AM, "McGehee, Robert" <Robert.McGehee at geodecapital.com> wrote:

> R-developers,
> I have a binary R package built using R 2.14.1 that I would like to run on R 3.0.0. Unfortunately, the original source code is unavailable, so I cannot rebuild the package as R 3.0.0 requires.
> 
> Is there a straight forward way of converting the package (.rdb, .rdx and .rds files) in the binary package from a 2.14.1 version to a 3.0.0 version without the source code (perhaps uncompressing/recompressing somehow)?
> 
> Naturally, since the R code is visible, I know I can output all of the parsed objects in the package to a text file to make a skeleton package that can then be built/installed. Something like this:
> 
>       objs <- ls(envir=loadNamespace("binaryPkg"), all.names=TRUE)
>       dump(objs, file="code.R", envir=loadNamespace("binaryPkg"))
> 
> However, I'd still lose all the man pages, and since I get a couple of "deparse may be incomplete" warnings, I worry that this may be introducing additional bugs.
> 
> Is there a magic solution here, or is this a fool's errand?
> 
> Thanks, Robert

Robert,

Which package? You might find some older version of the package source code here:

  http://cran.us.r-project.org/src/contrib/Archive/

or have you already looked there?

Regards,

Marc Schwartz



[Rd] Rebuild package on R 3.0.0 without source code?
Marc Schwartz