Hi, is there a simple way, I mean a utility that converts a windows package (.zip file) to a Linux source package (tar.gz or even simply extract the source code and Rd files needed to run successfully a R CMD check). The windows package doesn't have any external lib, C code, etc..., just plain R code, so in theory it is quite straight forward (extract the code from the functions, and re-separate the Rd files from the man directory. Any idea? Thanks
Well... thanks for the hint (...) but it happens that it is not as simple... You need to do some changes: - the first thing is to delete the 'Built' section from the DESCRIPTION file - + other stuffs... Thanks roger koenker wrote:> unzip > > url: www.econ.uiuc.edu/~roger Roger Koenker > email rkoenker at uiuc.edu Department of Economics > vox: 217-333-4558 University of Illinois > fax: 217-244-6678 Champaign, IL 61820 > > > > On Oct 30, 2008, at 9:50 AM, Renaud Gaujoux wrote: > >> Hi, >> >> is there a simple way, I mean a utility that converts a windows >> package (.zip file) to a Linux source package (tar.gz or even simply >> extract the source code and Rd files needed to run successfully a R >> CMD check). >> The windows package doesn't have any external lib, C code, etc..., >> just plain R code, so in theory it is quite straight forward (extract >> the code from the functions, and re-separate the Rd files from the >> man directory. >> >> Any idea? >> >> Thanks >> >> ______________________________________________ >> 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 10/30/2008 10:50 AM, Renaud Gaujoux wrote:> Hi, > > is there a simple way, I mean a utility that converts a windows package > (.zip file) to a Linux source package (tar.gz or even simply extract the > source code and Rd files needed to run successfully a R CMD check). > The windows package doesn't have any external lib, C code, etc..., just > plain R code, so in theory it is quite straight forward (extract the > code from the functions, and re-separate the Rd files from the man > directory. > > Any idea?No, no such utility exists as far as I know. But as you say, it should be relatively straightforward to write one: the Rd files are concatenated and compressed into man/pkg.Rd.gz, and the R files are concatenated into R/pkg. You just need to watch out for comments in the files that will be mistaken for separators. Duncan Murdoch