[R] Transferring Package from Unix to NT

Prof Brian Ripley
Fri, 29 Jun 2001 15:05:35 -0000

On Fri, 29 Jun 2001, Surapanani, Raja wrote:

> I currently have a working package called misc in Unix (successfully
> completed the process of check, build, and install). So, now I am having
> problems installing this package in R for windows... by the way, both
> versions of R in Unix and Windows are 1.3
> here is the process i went through and the problems I had:
>
> -I zipped up the files from my package in unix:
> 	zip -rl ~/misc.zip misc
> -this created a zip file misc.zip and I then transferred this to NT and
> unzipped it into C:/rw1030/library

If this is a source package, it should be in C:/rw1030/src/library: it is
installed to R_HOME/library.

> -At this point, I have a folder in C:/rw1030/library with all the correct
> files in it...
> -I then downloaded the tools from
> http://www.stats.ox.ac.uk/pub/Rtools/tools.zip and unzipped the tools into
> C:/rw1030/src/gnuwin32

You need to follow the instructions in readme.packages:

  All of these need to be installed and in your path, and the
  appropriate environment variables set.  Edit MkRules to set BUILD and

Whyever would C:/rw1030/src/gnuwin32 be in your path or a suitable place?

> - I also installed perl for NT from
> http://www.activestate.com/Products/ActivePerl/
> -I then went into the Ms-DOS command prompt and did a cd to the following
> folder: C:/rw1030/src/gnuwin32
> - then the following command produced errors:
> 	C:\rw1030\src\gnuwin32\> make pkg-misc
> 	make: /bin/sh.exe: Command not found
> 	make: /bin/sh.exe: Command not found
> 	make: /bin/sh.exe: Command not found
> 	make: /bin/sh.exe: Command not found
> 	make: /bin/sh.exe: Command not found
> 	make: /bin/sh.exe: Command not found
> 	make: /bin/sh.exe: Command not found
> 	make: /bin/sh.exe: Command not found
> 	make: /bin/sh.exe: Command not found
> 	make: /bin/sh.exe: Command not found
> 	make: /bin/sh.exe: Command not found
> 	make: /bin/sh.exe: Command not found
> 	make DLLNM= EXTRADOCS= \
> 		-C /src/libarary/misc PKG=misc RHOME= RLIB=/library \
> 		-f /src/gnuwin32/MakePkg
> 	make: /bin/sh.exe: Command not found
> 	make: *** [pkg-misc] Error 127
>
> I don''t understand why it''s not finding sh.exe. To try to
fix it I also
> unzipped tools.zip into C:/rw1030/bin folder and the same error occurs...
Is
> there some sort of problem with the environment variables or maybe with
> perl? Any help would be appreciated.

Is C:/rw1030/bin in your path?
The messages mean that there is no sh.exe in your path.  You could of
course create /bin and put sh.exe there ... you will have the same
trouble on Unix if the shell is not in your path.


I am getting rather short of time to answer queries like this.
I hope readers will find acceptable that in future I will only send
private replies along the lines of

`Read readme.packages carefully''

or whatever, particularly to commercial (.com) R users.

--
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at
stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._