On 16.03.2010 14:35, R Heberto Ghezzo, Dr wrote:
Thanks to Uwe Ligges, simply putting
library(xxx)
dump(ls(pos=2)),file="xxx.r")
gives a file with all the 'pure R' function in a package
This just solved my problem, as an added curiosity or just for completion sake, 
if the package 'xxx'
has some C/Fortran code , ie an /lib/xxx.dll in Windows, will Rcmd INSTALL xxx 
work when xxx has
a R; man and lib subfolders? not a src subfolder since I have the dll not the 
original C/for

No, it won't work that way.
But you could use some trick in order to "inject" the library. Since that one was compiled and linked against an ancient version of R, there is always the risk that your library won't work at all or causes crashes, of course.

As an example see package rcom that does such nasty things by delivering the files somewhere in ./inst and ciopies on installation to ./libs using its configure.win file.

Best,
Uwe Ligges







Thanks
Heberto Ghezzo


________________________________________
From: Uwe Ligges [lig...@statistik.tu-dortmund.de]
Sent: Sunday, March 14, 2010 2:04 PM
To: R Heberto Ghezzo, Dr
Subject: Re: [R] unknown compression

On 13.03.2010 22:33, R Heberto Ghezzo, Dr wrote:
Hello Uwe / Rohlf
Yes I know that, the problem here is that I have a package, old, it says Built: 
R 2.0.0; ; 2004-11-15 14:58:41; windows
   it is not in CRAN the author and manteiner can not be reached, so I have no 
way of obtaining the source tarball. The only solution is to decompress the 
pair .rdb .rdx if it is possible?

In that case you can load the package and save all functions from that
environment into a new package.

The tool to load the serialized databases is lazyLoad() - or more low
level lazyLoadDBfetch(), both not intended to be called by a user.

Best wishes,
Uwe



Thanks for any help
Heberto Ghezzo

________________________________________
From: Uwe Ligges [lig...@statistik.tu-dortmund.de]
Sent: Saturday, March 13, 2010 3:37 PM
To: R Heberto Ghezzo, Dr
Cc: r-help@r-project.org
Subject: Re: [R] unknown compression

On 12.03.2010 21:34, R Heberto Ghezzo, Dr wrote:
Hello, I am trying to modify some functions in an existing package. I can get a 
function by just typing the name in the console, but how can I get all the 
functions in a package? the ./R/ subdirectory has files xx.rdb and xx.rdx which 
I can not decompress with 7-zip or with unzip, unrar etc. The help files are 
compressed with gzip in the ./man/ folder and can be unzipped easily.

You are looking in a binary package.

Instead of that, just download a source package (i.e. a not yet compiled
one) from CRAN where you find the sources in plain text.

Uwe Ligges

Thanks for your help
heberto.ghe...@mcgill.ca
______________________________________________
R-help@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.

______________________________________________
R-help@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.

Reply via email to