Skip to content

Installing package QRMlib

18 messages · R. Michael Weylandt, Duncan Murdoch, DT54321 +2 more

#
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.
#
Do you perhaps need to add install.packages(...,  type="src")? Just a
(untested) guess...

Michael
On Mon, Feb 27, 2012 at 12:07 PM, DT54321 <deepan.tailor88 at gmail.com> wrote:
#
On 27/02/2012 3:01 PM, R. Michael Weylandt wrote:
That should be type="source", and that should solve the problem, 
assuming Deepan has the necessary tools installed.  If not, he can get 
them from CRAN in the bin/windows/Rtools directory.

Duncan Murdoch
#
Dear all:

well, what Duncan has suggested would work in principle. However, the dependencies of QRMlib as contained in the archive have been deprecated and the package maintainer (cc'ed to this email directly) is pretty close to a re-release of his package on CRAN, whereby primarily the outdated package dependency to fSeries is changed to timeSeries. 
Hence, before grabbing the deprecated package dependencies on R-Forge and install these, it might be worth waiting for the re-submittance of QRMlib to CRAN, given that it will be made in due course. Scott, do you have any further information whence QRMlib will be made available again on CRAN?

Best,
Bernhard

-----Urspr?ngliche Nachricht-----
Von: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] Im Auftrag von Duncan Murdoch
Gesendet: Montag, 27. Februar 2012 21:16
An: R. Michael Weylandt
Cc: r-help at r-project.org; DT54321
Betreff: Re: [R] Installing package QRMlib
On 27/02/2012 3:01 PM, R. Michael Weylandt wrote:
That should be type="source", and that should solve the problem, assuming Deepan has the necessary tools installed.  If not, he can get them from CRAN in the bin/windows/Rtools directory.

Duncan Murdoch
______________________________________________
R-help at 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.
*****************************************************************
Confidentiality Note: The information contained in this ...{{dropped:10}}
#
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.
#
As stated, you need to install the *deprecated* dependencies of QRMlib as shown in its DESCRIPTION as well as the reverse dependent *deprecated* packages. These can still be fetched from R-Forge (Rmetrics project). The package 'timeSeries' will become a dependency of the to be re-released QRMlib package on CRAN.  

-----Urspr?ngliche Nachricht-----
Von: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] Im Auftrag von DT54321
Gesendet: Dienstag, 28. Februar 2012 11:10
An: r-help at r-project.org
Betreff: Re: [R] Installing package QRMlib

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 at 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.
*****************************************************************
Confidentiality Note: The information contained in this message,
and any attachments, may contain confidential and/or privileged
material. It is intended solely for the person(s) or entity to
which it is addressed. Any review, retransmission, dissemination,
or taking of any action in reliance upon this information by
persons or entities other than the intended recipient(s) is
prohibited. If you received this in error, please contact the
sender and delete the material from any computer.
*****************************************************************
#
I think you'll need to install fEcofin from CRAN, and then the following
.tar.gz files from the CRAN archives:
fUtilities
fCalenday
fSeries

And then try installing the QRMlib .tar.gz.

If you're still having problems, try: 
"C:/Program Files/R/R-2.14.0/bin/x64/R" CMD check "QRMlib_1.4.5.1.tar.gz"
(or whatever is equivalent for your R installation) from the Windows command
prompt .  That will output more useful information on errors and warnings.


Jeremy


Jeremy Hetzel
Boston University



Pfaff, Bernhard Dr. wrote
-----
Jeremy T. Hetzel
Boston University
--
View this message in context: http://r.789695.n4.nabble.com/Installing-package-QRMlib-tp4425269p4428517.html
Sent from the R help mailing list archive at Nabble.com.
#
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.
#
I installed fEcofin, fUtilities, fCalenday, and fSeries from the CRAN
archives and was able to install and load QRMlib.

Which errors does "R CMD check QRMlib_1.4.5.1.tar.gz" show?



DT54321 wrote
-----
Jeremy T. Hetzel
Boston University
--
View this message in context: http://r.789695.n4.nabble.com/Installing-package-QRMlib-tp4425269p4428842.html
Sent from the R help mailing list archive at Nabble.com.
#
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.
#
Next, you should check C:/Program
Files/R/R-2.14.1/bin/QRMlib.Rcheck/00install.out for details on the error.


DT54321 wrote
-----
Jeremy T. Hetzel
Boston University
--
View this message in context: http://r.789695.n4.nabble.com/Installing-package-QRMlib-tp4425269p4429041.html
Sent from the R help mailing list archive at Nabble.com.
#
Please quote context.

You can open it with any plain text editor. (i.e., notepad)

Michael
On Tue, Feb 28, 2012 at 2:42 PM, DT54321 <deepan.tailor88 at gmail.com> wrote:
#
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.
#
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.
#
Well, because QRMlib interfaces C routines (IIRC), the error message is pretty indicative, i.e. these routines cannot be compiled. Now, without further information there is not much to recommend, but:

1) check your RTools installation
2) Ask the package maintainer (cc'ed) when he will re-release QRMlib on CRAN, be patient until the binaries have been populated and use install.packages()

Best,
Bernhard

-----Urspr?ngliche Nachricht-----
Von: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] Im Auftrag von DT54321
Gesendet: Mittwoch, 29. Februar 2012 14:17
An: r-help at r-project.org
Betreff: Re: [R] Installing package QRMlib

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 at 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.
*****************************************************************
Confidentiality Note: The information contained in this message,
and any attachments, may contain confidential and/or privileged
material. It is intended solely for the person(s) or entity to
which it is addressed. Any review, retransmission, dissemination,
or taking of any action in reliance upon this information by
persons or entities other than the intended recipient(s) is
prohibited. If you received this in error, please contact the
sender and delete the material from any computer.
*****************************************************************
#
QRMlib built without errors on my WIndows machine.  Here's the resulting zip
binary:
http://commondatastorage.googleapis.com/jthetzel-public/QRMlib_1.4.5.1.zip

Will that install on your machine?

Jeremy



DT54321 wrote
-----
Jeremy T. Hetzel
Boston University
--
View this message in context: http://r.789695.n4.nabble.com/Installing-package-QRMlib-tp4425269p4431832.html
Sent from the R help mailing list archive at Nabble.com.