RE: [R] Building an R package under Windows NT

2003-06-04 Thread Benjamin . STABLER
The version of Perl I have is:

  This is perl, version 5.005_02 built for MSWin32-x86-object

  Copyright 1987-1998, Larry Wall

  Binary build 506 provided by ActiveState Tool Corp.
http://www.ActiveState.com
  Built 15:40:37 Oct 27 1998

It was installed by my IS department some time ago.  I will try installing
Perl 5.8 and see if that works.

Since Rcmd build -h does not print a description of the acceptable values
for --docs=, I thought I would look for something similar.  The
--docs=TYPE option for build and the --type=TYPE for Rdconv looked
related so I thought I would give it a try.  Without knowing what the
correct values for --docs=TYPE are, how am I suppose to know that
--docs=TYPE is not the same as --type=TYPE for specifing what types of
help documents to create?  I don't think it is a stretch to see how these
two could be confused.


-Original Message-
From: Prof Brian Ripley [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 12:48 AM
To: STABLER Benjamin
Subject: RE: [R] Building an R package under Windows NT


On Mon, 2 Jun 2003 [EMAIL PROTECTED] wrote:

 Professor Ripley,
 
 I just downloaded and installed the most current tools from your site
 (http://www.stats.ox.ac.uk/pub/Rtools/), I have version 
5.005_02 of Perl,
 and I still get the same error.  Do you think Perl 5.8 would 
*fix* this
 problem?

I have no idea, but I do know that correcting all of *your* 
errors would 
solve the problem.  As that version of Perl was AFAIK never 
released for 
Windows (and has not been available for several years if it 
was), I think 
you need to try to follow the instructions *exactly* (which 
you have not 
done re Perl, which says

  The Windows port of perl5, available via
  http://www.activestate.com/Products/ActivePerl/.
  BEWARE: you do need the *Windows* port and not the Cygwin one.

).
 
 I didn't think the docs=html option would work as I got the 
html option from
 the Rdconv type=TYPE help since the build help does not list 
the options.  I
 didn't think to look at the install help.

Why do you think --type (sic) takes the same values as --docs ?


-- 
Brian D. Ripley,  [EMAIL PROTECTED]
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 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595


__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


RE: [R] Building an R package under Windows NT

2003-06-04 Thread Benjamin . STABLER
The emme2 package is not in the $RHOME/library directory.  My sh.exe is the
most current one from the tools available at
http://www.stats.ox.ac.uk/pub/Rtools/.I searched for sh.exe and that is
only one I've got on my system.


-Original Message-
From: Duncan Murdoch [mailto:[EMAIL PROTECTED]
Sent: Monday, June 02, 2003 5:09 PM
To: STABLER Benjamin
Cc: [EMAIL PROTECTED]
Subject: Re: [R] Building an R package under Windows NT


On Mon, 2 Jun 2003 14:08:55 -0700 , you wrote:

Thanks for the suggestions.  

1) I fixed the zip.exe PATH issue.
2) I removed unnecessary quotes around C:\Program Files\R
3) I ran Rcmd install emme2 with the following result:

Where is emme2?  You shouldn't keep the source in the
$RHOME/library/emme2 directory, which is where it will be installed.

-- Making package emme2 
  adding build stamp to DESCRIPTION
  installing R files
 175373 [main] sh 352 proc_subproc: Couldn't duplicate my 
handle0xA4 for
pid 1736008448, Win32 error 6

This is an error in sh.exe.  Are you getting the one from the R
toolset, or possibly another one?

Duncan Murdoch


__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


RE: [R] Building an R package under Windows NT

2003-06-04 Thread Benjamin . STABLER
I finally figured out the problem.  I went ahead and installed Perl 5.8 but
that didn't do it.  The problem was that an existing program's directory was
earlier in the PATH and so one (or more) of the components of the Rcmd
INSTALL was an older version.  It wasn't zip since I renamed the old zip.
Anyway, thanks for your help.

Regards,
Ben Stabler

-Original Message-
From: Prof Brian Ripley [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 12:48 AM
To: STABLER Benjamin
Subject: RE: [R] Building an R package under Windows NT


On Mon, 2 Jun 2003 [EMAIL PROTECTED] wrote:

 Professor Ripley,
 
 I just downloaded and installed the most current tools from your site
 (http://www.stats.ox.ac.uk/pub/Rtools/), I have version 
5.005_02 of Perl,
 and I still get the same error.  Do you think Perl 5.8 would 
*fix* this
 problem?

I have no idea, but I do know that correcting all of *your* 
errors would 
solve the problem.  As that version of Perl was AFAIK never 
released for 
Windows (and has not been available for several years if it 
was), I think 
you need to try to follow the instructions *exactly* (which 
you have not 
done re Perl, which says

  The Windows port of perl5, available via
  http://www.activestate.com/Products/ActivePerl/.
  BEWARE: you do need the *Windows* port and not the Cygwin one.

).
 
 I didn't think the docs=html option would work as I got the 
html option from
 the Rdconv type=TYPE help since the build help does not list 
the options.  I
 didn't think to look at the install help.

Why do you think --type (sic) takes the same values as --docs ?


-- 
Brian D. Ripley,  [EMAIL PROTECTED]
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 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595


__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


Re: [R] Building an R package under Windows NT

2003-06-03 Thread Prof Brian Ripley
Try to install the package first, via

Rcmd INSTALL emme2

as a binary build involves an install and a direct install may be more
informative.

The message about zip suggests you don't have the right things first in 
your path, so please read the file readme.packages and cross check.
In particular, check that `zip -v' gives

Copyright (C) 1990-1999 Info-ZIP
Type 'zip -L' for software license.
This is Zip 2.3 (November 29th 1999), by Info-ZIP.
...

(and that version does have an X argument).

On Mon, 2 Jun 2003 [EMAIL PROTECTED] wrote:

 I am trying to build a R 1.7 package under Windows NT.  I created the
 DESCRIPTION file, the RD file and added the code to the R folder.  I also
 downloaded and installed the Rtools package and have Perl 5.0.  I know that
 Perl, Miktex, and gcc are working.  I also have my PATH variable set
 correctly.  I can fake install my package by removing the *.R from the code
 file, using Rcmd Rdconv to create the 00index.html file from my Rd file, and
 copying the package folder to the library folder.  But I can't seem to get
 Rcmd build to build a binary version of my package.  I can run build without
 the --binary option and I get all my files in a taz.gz file.  
 
 D:\Rcmd build emme2
 * checking for file 'emme2/DESCRIPTION' ... OK
 * preparing 'emme2':
 * checking whether 'INDEX' is up-to-date ... OK
 * removing junk files
 * building 'emme2_0.1.tar.gz'
 
 But when I try to build a precompiled binary package I get the following
 response:
 
 D:\Rcmd build --binary emme2
 * checking for file 'emme2/DESCRIPTION' ... OK
 
 make: *** [pkg-emme2] Error 255
 *** Installation of emme2 failed ***
 
 installing R.css in c:/TEMP/Rbuild.225
 
 * building 'emme2_0.1.zip'
 zip error: Invalid command arguments (no such option: X)
 
 
 Any help would be appreciated.  Thanks.
 
 Benjamin Stabler
 Transportation Planning Analysis Unit
 Oregon Department of Transportation
 555 13th Street NE, Suite 2
 Salem, OR 97301  Ph: 503-986-4104
 
 __
 [EMAIL PROTECTED] mailing list
 https://www.stat.math.ethz.ch/mailman/listinfo/r-help
 

-- 
Brian D. Ripley,  [EMAIL PROTECTED]
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 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


Re: [R] Building an R package under Windows NT

2003-06-03 Thread Duncan Murdoch
On Mon, 2 Jun 2003 11:35:21 -0700 , you wrote in message
[EMAIL PROTECTED]:


But when I try to build a precompiled binary package I get the following
response:

D:\Rcmd build --binary emme2
* checking for file 'emme2/DESCRIPTION' ... OK

make: *** [pkg-emme2] Error 255
*** Installation of emme2 failed ***

installing R.css in c:/TEMP/Rbuild.225

* building 'emme2_0.1.zip'
zip error: Invalid command arguments (no such option: X)

Looks as though you have an incompatible version of zip on your path
ahead of the one from Rtools.

Duncan Murdoch

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


RE: [R] Building an R package under Windows NT

2003-06-03 Thread Prof Brian Ripley
On Mon, 2 Jun 2003 [EMAIL PROTECTED] wrote:

 Thanks for the suggestions.  
 
 1) I fixed the zip.exe PATH issue.
 2) I removed unnecessary quotes around C:\Program Files\R
 3) I ran Rcmd install emme2 with the following result:
 
 -- Making package emme2 
   adding build stamp to DESCRIPTION
   installing R files
  175373 [main] sh 352 proc_subproc: Couldn't duplicate my handle0xA4 for
 pid 1736008448, Win32 error 6
   installing man source files
   33006 [main] sh 280 proc_subproc: Couldn't duplicate my handle0xA0 for
 pid 1736008448, Win32 error 6
   installing indices
 make[1]: *** [indices] Error 255
 make: *** [pkg-emme2] Error 2
 *** Installation of emme2 failed ***

[Lots of duplicates of these messages removed.]

Do check that you *really* have the right versions of the tools, as this 
is yet another symptom of incorrect versions.

 Thus I am not doing something correctly.  I was able to install the package
 via the install from local zip file option in RGui though.  But I can't
 search for any of my functions and the 00Index.html file was not created.
 Do I need to create 00Index.html with Rdconv?  I thought maybe I should use
 Rcmd build --binary --docs=html emme2 but the --docs=html option is not
 working for me.  The html is less important to me than the make working

Given that it is nowhere documented to work, why do you expect it to?  
Try Rcmd INSTALL --help to see the valid values of TYPE.

-- 
Brian D. Ripley,  [EMAIL PROTECTED]
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 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


Re: [R] Building an R package under Windows NT

2003-06-03 Thread Duncan Murdoch
On Mon, 2 Jun 2003 14:08:55 -0700 , you wrote:

Thanks for the suggestions.  

1) I fixed the zip.exe PATH issue.
2) I removed unnecessary quotes around C:\Program Files\R
3) I ran Rcmd install emme2 with the following result:

Where is emme2?  You shouldn't keep the source in the
$RHOME/library/emme2 directory, which is where it will be installed.

-- Making package emme2 
  adding build stamp to DESCRIPTION
  installing R files
 175373 [main] sh 352 proc_subproc: Couldn't duplicate my handle0xA4 for
pid 1736008448, Win32 error 6

This is an error in sh.exe.  Are you getting the one from the R
toolset, or possibly another one?

Duncan Murdoch

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help