I am trying to learn how to make a simple package that contains no C or Fortran code. I used package.skeleton(...) to make a package called "test". The directory and files look good. I downloaded and installed Rtools (www.murdoch-sutherland.com/Rtools/tools.zip). I added the path and from the dos prompt I can verify that make.exe and sh.exe both exist, but when I try to run "R CMD INSTALL test" I get an error "make: sh.exe: Command not found" and "make: *** [pkg-test] Error 127". I get the same error message if a try the command "make pkg-test". I saw in an old FAQ a suggestion to move sh.eve to the C:\bin\ folder, but my C: root does not have a "bin" folder. Nonetheless, I created one and put sh.exe there and it provided no help (I didn't expect it too). Can anyone help me?
Duncan Murdoch
2005-Mar-15 19:51 UTC
[R] missing sh.exe file when running "R CMD INSTALL test"
On Tue, 15 Mar 2005 14:26:42 -0500, roger bos <roger.bos at gmail.com> wrote :>I am trying to learn how to make a simple package that contains no C >or Fortran code. I used package.skeleton(...) to make a package >called "test". The directory and files look good. I downloaded and >installed Rtools (www.murdoch-sutherland.com/Rtools/tools.zip). I >added the path and from the dos prompt I can verify that make.exe and >sh.exe both exist, but when I try to run "R CMD INSTALL test" I get an >error "make: sh.exe: Command not found" and "make: *** [pkg-test] >Error 127". I get the same error message if a try the command "make >pkg-test". > >I saw in an old FAQ a suggestion to move sh.eve to the C:\bin\ folder, >but my C: root does not have a "bin" folder. Nonetheless, I created >one and put sh.exe there and it provided no help (I didn't expect it >too). > >Can anyone help me?It sounds as though your PATH is incomplete. If you just type "sh", does it run? If not, then you need to set up your path to include the R tools directory. It should probably be first in the PATH, as described in README.packages.. bDuncan
Gabor Grothendieck
2005-Mar-15 20:32 UTC
[R] missing sh.exe file when running "R CMD INSTALL test"
roger bos <roger.bos <at> gmail.com> writes: : : I am trying to learn how to make a simple package that contains no C : or Fortran code. I used package.skeleton(...) to make a package : called "test". The directory and files look good. I downloaded and : installed Rtools (www.murdoch-sutherland.com/Rtools/tools.zip). I : added the path and from the dos prompt I can verify that make.exe and : sh.exe both exist, but when I try to run "R CMD INSTALL test" I get an : error "make: sh.exe: Command not found" and "make: *** [pkg-test] : Error 127". I get the same error message if a try the command "make : pkg-test". : : I saw in an old FAQ a suggestion to move sh.eve to the C:\bin\ folder, : but my C: root does not have a "bin" folder. Nonetheless, I created : one and put sh.exe there and it provided no help (I didn't expect it : too). : : Can anyone help me? I suspect you may have only defined it for a particular console session, not permanently. 1. Right click My Computer 2. Choose Properties 3. Choose Advanced 4. Click on Environment Variables and make sure its in the PATH defined there. If