Re: [R] Installing package QRMlib

2012-02-29 Thread DT54321
Ah yes, I can open it with Notepad...it reads the following:

* installing *source* package 'QRMlib' ...
** Creating default NAMESPACE file
** libs
ERROR: compilation failed for package 'QRMlib'
* removing 'C:/PROGRA~1/R/R-214~1.1/bin/QRMLIB~1.RCH/QRMlib'



--
View this message in context: 
http://r.789695.n4.nabble.com/Installing-package-QRMlib-tp4425269p4431034.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Installing package QRMlib

2012-02-29 Thread DT54321
I wouldn't see myself as an experienced R user soI would appreciate if anyone
is able to give me a clear set of instructions on how to install and load
QRMlib. The steps I've followed are:

1: Download 'QRMlib_1.4.5.1.tar.gz' from
http://cran.r-project.org/src/contrib/Archive/QRMlib/ to my local folder.

2. QRMlib depends on methods, fCalendar, fEcofin, mvtnorm, chron,its,Hmisc
so I install all of these. I install teh following from within RStuidos
using the  Packages tab:

a) mvtnorm
b) chron
c) its
d) Hmisc 
e) methods

And download the tar.gz files from the archive for:

A) fCalendar
b) fEcofin

In R, I also use the install.packages with type = source and repos = NULL
to install the packages listed in A) and B)

3. In R, then enter

iinstall.packages(file_name, type =source, repos = NULL)

where file_name is the directory for QRMlib_1.4.5.1.tar.gz.

It outputs the following error:

Installing package(s) into ‘C:/Program Files/R/R-2.14.1/library’
(as ‘lib’ is unspecified)
* installing *source* package 'QRMlib' ...
** Creating default NAMESPACE file
** libs
ERROR: compilation failed for package 'QRMlib'
* removing 'C:/Program Files/R/R-2.14.1/library/QRMlib'
* restoring previous 'C:/Program Files/R/R-2.14.1/library/QRMlib'
Warning in install.packages :
  running command 'C:/PROGRA~1/R/R-214~1.1/bin/i386/R CMD INSTALL -l
C:/Program Files/R/R-2.14.1/library  
my_local_folder/QRMlib_1.4.5.1.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘Pmy_local_folder/QRMlib_1.4.5.1.tar.gz’ had
non-zero exit status

Please help!

--
View this message in context: 
http://r.789695.n4.nabble.com/Installing-package-QRMlib-tp4425269p4431453.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Installing package QRMlib

2012-02-29 Thread DT54321
That worked!

Thanks a lot Jeremy. 

--
View this message in context: 
http://r.789695.n4.nabble.com/Installing-package-QRMlib-tp4425269p4431895.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Installing package QRMlib

2012-02-28 Thread DT54321
Thanks for the reply guys. Well, I've tried the following command after
installing the package dependancies including timeSeries:

install.packages(file_name, type = source, repos = NULL)
 
Ans still no luck...I get the following error message:

Installing package(s) into ‘C:/Program Files/R/R-2.14.1/library’
(as ‘lib’ is unspecified)
* installing *source* package 'QRMlib' ...
** Creating default NAMESPACE file
** libs
ERROR: compilation failed for package 'QRMlib'
* removing 'C:/Program Files/R/R-2.14.1/library/QRMlib'
* restoring previous 'C:/Program Files/R/R-2.14.1/library/QRMlib'
Warning in install.packages :
  running command 'C:/PROGRA~1/R/R-214~1.1/bin/i386/R CMD INSTALL -l
C:/Program Files/R/R-2.14.1/library   
my_local_folder/QRMlib_1.4.5.1.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘my_local_folder/QRMlib_1.4.5.1.tar.gz’ had
non-zero exit status

Any ideas??

--
View this message in context: 
http://r.789695.n4.nabble.com/Installing-package-QRMlib-tp4425269p4427627.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Installing package QRMlib

2012-02-28 Thread DT54321
According to the QRMlib package pdf, 

http://www.mirrorservice.org/sites/lib.stat.cmu.edu/R/CRAN/doc/packages/QRMlib.pdf

the package depennds on methods, fCalendar, fEcofin, mvtnorm,
chron,its,Hmisc. I have installed all of these (some were retrieved from
archive and some were retrieved from CRAN) and still getting errors.

I'm just wondering whether anyone has successfully loaded QRMlib??

--
View this message in context: 
http://r.789695.n4.nabble.com/Installing-package-QRMlib-tp4425269p4428600.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Installing package QRMlib

2012-02-28 Thread DT54321
In command prompt, I direct to the following directory:

C:\Program Files\R\R-2.14.1\bin

Now I enter:

R CMD check my_local_folder\QRMlib_1.4.5.1.tar.gz

The following appears:

* using log directory 'C:/Program Files/R/R-2.14.1/bin/QRMlib.Rcheck'
* using R version 2.14.1 (2011-12-22)
* using platform: i386-pc-mingw32 (32-bit)
* using session charset: ISO8859-1
* checking for file 'QRMlib/DESCRIPTION' ... OK
* this is package 'QRMlib' version '1.4.5.1'
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking if there is a namespace ... NOTE
As from R 2.14.0 all packages need a namespace.
One will be generated on installation, but it is better to handcraft a
NAMESPACE file: R CMD build will produce a suitable starting point.
* checking for .dll and .exe files ... OK
* checking whether package 'QRMlib' can be installed ... ERROR
Installation failed.
See 'C:/Program Files/R/R-2.14.1/bin/QRMlib.Rcheck/00install.out' for
details.



--
View this message in context: 
http://r.789695.n4.nabble.com/Installing-package-QRMlib-tp4425269p4428988.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Installing package QRMlib

2012-02-28 Thread DT54321
Yes, I did. But my Windows did not know what program to open it with...

--
View this message in context: 
http://r.789695.n4.nabble.com/Installing-package-QRMlib-tp4425269p4429275.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Installing package QRMlib

2012-02-27 Thread DT54321
Hi, 
I am having real problems downloading the package 'QRMlib'. The tar.gz file
is shown here:

http://cran.r-project.org/src/contrib/Archive/QRMlib/

I have downloaded this to my local folder and entered the following command:

nstall.packages(myLocalFolder/QRMlib_1.4.5.1.tar.gz, repos = NULL)

but I am getting the following error message

Installing package(s) into ‘C:/Program Files/R/R-2.14.1/library’
(as ‘lib’ is unspecified)
Warning in install.packages :
  error 1 in extracting from zip file
Warning in install.packages :
  cannot open compressed file 'QRMlib_1.4.5.1.tar.gz/DESCRIPTION', probable
reason 'No such file or directory'
Error in install.packages : cannot open the connection

What am I doing wrong??

Thanks

--
View this message in context: 
http://r.789695.n4.nabble.com/Installing-package-QRMlib-tp4425269p4425269.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.