s-news
[Top] [All Lists]

To convert a R package (gafit) to S-PLUS

To: <s-news@lists.biostat.wustl.edu>
Subject: To convert a R package (gafit) to S-PLUS
From: "Debabrata Midya" <Debabrata.Midya@commerce.nsw.gov.au>
Date: Thu, 21 Feb 2008 10:50:15 +1100
Dear S-PLUS users,

I need you assistance to convert a R package (gafit) to S-PLUS and
thanks in advance.

I have described below the steps followed.

I am using Enterprise Developer Version 8.0.4  of S-PLUS on Microsoft
Windows : 2007

STEP 1:

I have installed pkgutis and loaded using library(pkgutils).

STEP 2:

I have downloaded gafit_0.4.tar.gz and unpacked the package using tar
command:

tar -xzf gafit_0.4.tar.gz

It creates a directory D:\Analytics\gafit with the sub-directries,
\man, \src and \R, etc.

STEP 3:

At the DOS prompt:

D:\Analytics>Splus CMD check gafit

1. Log file

The file 00check.log appears in the directory,
D:\Analytics\gafit.Rcheck

The contents of the file 00check.log (start):

* using log directory 'D:/Analytics/gafit.Rcheck'                      
        
* using S-PLUS Enterprise Developer Version 8.0.4  for Microsoft
Windows : 2007 
* checking for file 'gafit/DESCRIPTION' ... OK                         
        
* this is package 'gafit' version '0.4'                                
        
* checking if this is a source package ... OK                          
        
* checking package directory ... OK                                    
        
* checking for portable file names ... OK                              
        
* checking DESCRIPTION meta-information ... OK                         
        
* checking index information ... OK                                    
        
* checking package subdirectories ... OK                               
        
* checking R files for syntax errors ... OK                            
        
* checking R files for library.dynam ... OK                            
        
* checking Rd \usage sections ... OK                                   
        
* checking for CRLF line endings in C/C++/Fortran sources/headers ...
OK

The contents of the file 00check.log (end):

The following lines also appear (not recorded in 00check.log) while
executing Splus CMD check gafit
----------------------------------------------------------------------------------------------------

C:\Program Files\Insightful\splus80\share\perl\INSTALL.pl: Splus
output:

'nmake' is not recognized as an internal or external command, operable
program or batch file.

SHLIB: make_clean ...

Problem in SHLIB: Problem running the make command at C:\Program
Files\Insightful\splus80\share\perl/Splus/SHLIB.pm line 270

STEP 4:

D:\Analytics>Splus CMD build gafit

pkgdir=gafit, pkgname=gafit
  adding: gafit/ (244 bytes security) (stored 0%)
  adding: gafit/COPYING (164 bytes security) (deflated 62%)
  adding: gafit/DESCRIPTION (164 bytes security) (deflated 40%)
  adding: gafit/man/ (244 bytes security) (stored 0%)
  adding: gafit/man/gafit.Rd (164 bytes security) (deflated 58%)
  adding: gafit/R/ (244 bytes security) (stored 0%)
  adding: gafit/R/gafit.R (164 bytes security) (deflated 48%)
  adding: gafit/R/zzz.R (164 bytes security) (deflated 9%)
  adding: gafit/src/ (244 bytes security) (stored 0%)
  adding: gafit/src/gafit.c (164 bytes security) (deflated 65%)
Compressed package is D:\Analytics\gafit_0.4.zip
Removing temporary directory
C:/DOCUME~1/MidyaD/LOCALS~1/Temp/Spkg1948f63a00
D:\Analytics\gafit_0.4.zip

STEP 5:

D:\Analytics>Splus CMD INSTALL -l gafit gafit_0.4.zip

Archive:  gafit_0.4.zip
   creating: gafit/                
  inflating: gafit/COPYING           
  inflating: gafit/DESCRIPTION       
   creating: gafit/man/            
  inflating: gafit/man/gafit.Rd      
   creating: gafit/R/              
  inflating: gafit/R/gafit.R         
  inflating: gafit/R/zzz.R           
   creating: gafit/src/            
  inflating: gafit/src/gafit.c       
Installing S code to directory C:/DOCUME~1/MidyaD/LOCALS~1/Temp/gafit
from the 2 file(s) gafit.R, zzz.R
C:\Program Files\Insightful\splus80\share\perl\INSTALL.pl: Splus
output:

'nmake' is not recognized as an internal or external command, operable
program or batch file.

SHLIB: make_clean ...

Problem in SHLIB: Problem running the make command at C:\Program
Files\Insightful\splus80\share\perl/Splus/SHLIB.pm line 270


This does not create a library called gafit in C:\Program
Files\Insightful\splus80\library

Once again, thank you very much for the time you have given.

Regards,

Debabrata Midya (Deb)
NSW Department of Commerce
Policy Support Services
Level 11
McKell Building
2-24 Rawson Place
Sydney NSW 2000

Ph.  (02) 9372 8918
Fax. (02) 9372 8844
E-mail: debabrata.midya@commerce.nsw.gov.au 



******************************************************************************

This email message, including any attached files, is confidential and
intended solely for the use of the individual or entity to whom it is
addressed. 

The NSW Department of Commerce prohibits the right to publish, 
copy, distribute or disclose any information contained in this email, 
or its attachments, by any party other than the intended recipient. 
If you have received this email in error please notify the sender and
delete it from your system.

No employee or agent is authorised to conclude any binding 
agreement on behalf of the NSW Department of Commerce by email. The
views or opinions presented in this email are solely those of the author
and do not necessarily represent those of the Department, 
except where the sender expressly, and with authority, states them to be
the views of NSW Department of Commerce.  

The NSW Department of Commerce accepts no liability for any loss or
damage arising from the use of this email and recommends that the
recipient check this email and any attached files for the presence of
viruses. 

******************************************************************************


<Prev in Thread] Current Thread [Next in Thread>
  • To convert a R package (gafit) to S-PLUS, Debabrata Midya <=