Hello, I know this might sound stupid, but here's my problem. I try to build packages, which gives absolutely no problem as long as I do this in Linux. I get my .tar.gz-package. However, for windows, one needs .zip-files (I guess), but for one reason or another, this seems not to work. I'm sorry about this question, but I'm not a windows-specialist (nor Linux-guru). I don't see how to make 'zip'-packages in linux and trying this in Windows ('Rcmd build <package>' at the DOS prompt), tells me it can't find perl script 'c:\Progra~1\R/bin/build' (or something like that). tnx, Kurt -- You can destroy your now by worrying about tomorrow. -- Janis Joplin
Hello Kurt, you might consult the following two web-references: 1) http://www.stats.ox.ac.uk/pub/Rtools/ 2) http://www.stat.auckland.ac.nz/~kwan022/pub/R/WinBook/WinBook.pdf chapter 5, Build R Package. The software you need to have installed is listed in chapter 4.1. HTH, Bernhard -----Original Message----- From: Kurt Sys [mailto:kurt.sys at UGent.be] Sent: 23 May 2003 12:35 To: R list Subject: [R] building zip? Hello, I know this might sound stupid, but here's my problem. I try to build packages, which gives absolutely no problem as long as I do this in Linux. I get my .tar.gz-package. However, for windows, one needs .zip-files (I guess), but for one reason or another, this seems not to work. I'm sorry about this question, but I'm not a windows-specialist (nor Linux-guru). I don't see how to make 'zip'-packages in linux and trying this in Windows ('Rcmd build <package>' at the DOS prompt), tells me it can't find perl script 'c:\Progra~1\R/bin/build' (or something like that). tnx, Kurt -- You can destroy your now by worrying about tomorrow. -- Janis Joplin ______________________________________________ R-help at stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help ---------------------------------------------------------------------- If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.drkw.com/disc/email/ or contact the sender.
Kurt Sys <kurt.sys at UGent.be> writes:> Hello, > > I know this might sound stupid, but here's my problem. I try to build > packages, which gives absolutely no problem as long as I do this in > Linux. I get my .tar.gz-package. However, for windows, one needs > .zip-files (I guess), but for one reason or another, this seems not to > work. > I'm sorry about this question, but I'm not a windows-specialist (nor > Linux-guru). I don't see how to make 'zip'-packages in linux and > trying this in Windows ('Rcmd build <package>' at the DOS prompt), > tells me it can't find perl script 'c:\Progra~1\R/bin/build' (or > something like that).You can use tar.gz files on Windows too, you just need to have the toolchain installed (which most people don't). I suspect you need to install the source tools. There's a check box for that when you install R (off by default; I actually thought I had convinced Duncan to change it, but apparently not). If you do have them installed, my best guess is that you need perl itself or that it is not configured right. However, that won't end your troubles... You do need to read the readme.packages file for what to do next. Basically, you have to install the package from source and zip the resulting installed package directory. -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
Hello, thanks, it's easy and it seems to work. There are not .dll's involved yet... tnx, Kurt. -- Mail from Rolf Turner sent on Friday May 23 2003 at 09:01 (GMT-0300):> > I had similar difficulties a while back, trying to build a package > for Windoze under Solaris. With Solaris, the answer turns out to be > easy --- once you know how. (But ``they'' never seem to tell you > these things until you squeeze the information out of ``them''.) > > That is, it's easy as long as there are no *.dll's involved. If > there are, then you have a more difficult problem, which I am > currently unqualified to help with. > > For what they're worth, here are my notes to myself on what to do > (in Solaris). (I was installing stuff for students on our local > Novell network, so the notes are oriented that way.): > > ===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+==> To create a package to be installed by Windows is easy as long as > there is no compilation (no C or Fortran code to be compiled into a > dynamically loadable object or `dll''.) > > Just install the package on the Unix box, go to where it's installed > (e.g. .../Rlib) and then execute > > zip -r9l <pkge>.zip <pkge> e.g.: > zip -r9l ts.sup.zip ts.sup > > The resulting *.zip file can then be transported to a windows system > and installed there. > > E.g. put ts.sup.zip in F:/rproject on the Novell network, start up R > and execute > > > install.packages("F:/rproject/ts.sup.zip", > lib="L:/statdata/Rlib",CRAN=NULL) > > (Currently an error and some warnings occur, but they can be > ignored!!!) > ===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+==> > The ``zip'' command is built into Solaris (solaris 2.9); on Linux I > guess you'd have to get it off the web and install it. E.g., (I > think) http://www.info-zip.org/pub/infozip/. > > Hope this helps. > > cheers, > > Rolf Turner rolf at math.unb.ca-- A Linux machine! because a 486 is a terrible thing to waste! -- jjs at wintermute.ucr.edu, Joe Sloan
Hello, I guess I owe the R Windows maintainers an apology. Indeed, the information of how building the zip-packages is in the file 'readme.packages'. However, my story (if I'm allowed): I installed R for Windows quite fast, just to test the packages. In standard installation, the necessary software for building packages is not installed, and hence, the file 'readme.packages' was not on the computer where I installed R for Windows. I read all readme-files and the 'writing extensions'... but the information was in the 'readme.packages', which was not 'installed', because I just took standard installation (it was just for testing, so I thought that the 'standard' installation would have been ok, as it is for Linux). I wonder, no offence to anyone, just a question, why the building packages stuff is not in the standard Windows installation. It would have saved me (and apparently some others) time, and all people on this list another stupid question mail. Kurt.