[R] Matrix package will not loead

Uzuner, Tolga I tolga.i.uzuner at jpmorgan.com
Thu Dec 6 18:20:21 CET 2012


Many thanks !
Tolga

-----Original Message-----
From: Martin Maechler [mailto:maechler at stat.math.ethz.ch] 
Sent: 06 December 2012 17:19
To: Uzuner, Tolga I
Cc: r-help at r-project.org
Subject: Re: [R] Matrix package will not loead

>>>>> Uzuner, Tolga <tolga.i.uzuner at jpmorgan.com>
>>>>>     on Thu, 6 Dec 2012 16:42:37 +0000 writes:

    > Thank you for all this, but it appears to be the case that while the packages have been compiled for 2-15.2, the version of R available for download at CRAN is 2-15.1 . I have submitted another email into the list asking for the 2-15.2 version (sadly, I am not able to compile code in my working environment), but could it be that I am missing something ?

Dear Tolga,
just in case you are stuck using R 2.15.1 :

Prof Ripley (and others I think) told you on November 13 when this
thread started,
that you should just the version of Matrix that *comes*  with
your version of R.
(and then do *not* update Matrix, because you might accidentally
 get the one *compiled* with R 2.15.2 and hence only working there).

OTOH,
I'm pretty sure you'll find R 2.15.2 for 32-bit Windows rather
sooner than later, if you really want.. 

E.g. if you use our Swiss CRAN mirror,

  http://cran.CH.r-project.org/bin/windows/base/
( which ==> http://stat.ethz.ch/CRAN/bin/windows/base/ )

shows 2.15.2 for download.

Martin

    > Thanks in advance,
    > Tolga

    > -----Original Message-----
    > From: Duncan Murdoch [mailto:murdoch.duncan at gmail.com] 
    > Sent: 13 November 2012 14:08
    > To: Uzuner, Tolga I
    > Cc: Prof Brian Ripley; r-help at r-project.org
    > Subject: Re: [R] Matrix package will not loead

    > On 13/11/2012 8:28 AM, Uzuner, Tolga I wrote:
    >> Many thanks for your advice and assistance.
    >> 
    >> Sadly, I am unable to install "from source" as my operating environment does not have Rtools or a compiler.
    >> 
    >> Is there an old version compiled somewhere I can use ?

    > You might be able to find one on a mirror that isn't up to date, but it 
    > would be a much better idea to update your R to the latest release.

    > Duncan Murdoch
    >> 
    >> 
    >> 
    >> > install.packages("H:\\Downloads\\Matrix_1.0-10.tar.gz", repos = NULL, type="source")
    >> Installing package(s) into 'H:/R/win-library/2.15'
    >> (as 'lib' is unspecified)
    >> * installing *source* package 'Matrix' ...
    >> ** package 'Matrix' successfully unpacked and MD5 sums checked
    >> ** libs
    >> ERROR: compilation failed for package 'Matrix'
    >> * removing 'H:/R/win-library/2.15/Matrix'
    >> Warning messages:
    >> 1: running command 'C:/PROGRA~1/R/R-215~1.1/bin/i386/R CMD INSTALL -l "H:/R/win-library/2.15"   "H:/Downloads/Matrix_1.0-10.tar.gz"' had status 1
    >> 2: In install.packages("H:\\Downloads\\Matrix_1.0-10.tar.gz", repos = NULL,  :
    >> installation of package 'H:/Downloads/Matrix_1.0-10.tar.gz' had non-zero exit status
    >> > install.packages("Matrix", type="source")
    >> Installing package(s) into 'H:/R/win-library/2.15'
    >> (as 'lib' is unspecified)
    >> --- Please select a CRAN mirror for use in this session ---
    >> trying URL 'http://cran.ma.imperial.ac.uk/src/contrib/Matrix_1.0-9.tar.gz'
    >> Error in download.file(url, destfile, method, mode = "wb", ...) :
    >> cannot open URL 'http://cran.ma.imperial.ac.uk/src/contrib/Matrix_1.0-9.tar.gz'
    >> In addition: Warning message:
    >> In download.file(url, destfile, method, mode = "wb", ...) :
    >> cannot open: HTTP status was '404 Not Found'
    >> Warning in download.packages(pkgs, destdir = tmpd, available = available,  :
    >> 
    >> 
    >> -----Original Message-----
    >> From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk]
    >> Sent: 13 November 2012 13:03
    >> To: Duncan Murdoch
    >> Cc: Uzuner, Tolga I; r-help at r-project.org
    >> Subject: Re: [R] Matrix package will not loead
    >> 
    >> You will find the problem and solution in the list archives.
    >> 
    >> The current version of Matrix can be installed *from source* on R (>=
    >> 2.15.0), as it claims.  But if you install it on R >= 2.15.2 then it
    >> uses features of 2.15.2 and hence can only be run on R >= 2.15.2. And
    >> there was a warning about this ....
    >> 
    >> On 13/11/2012 12:38, Duncan Murdoch wrote:
    >> > On 12-11-13 7:06 AM, Uzuner, Tolga I wrote:
    >> >> Dear Fellow R Users,
    >> >>
    >> >> I am having a problem with the Matrix package, in Windows XP on  R
    >> >> 2.15.1 .
    >> >>
    >> >> This is the only package where I experience this. I remove the package
    >> >> first, re install, and then when trying to load, get a LoadLibrary
    >> >> failure as below.
    >> >
    >> > I've just installed a binary copy of Matrix 1.0-10 in R 2.15.2 patched,
    >> > and I get an error too on attaching it:  "The procedure entry point
    >> > Rf_copyListMatrix could not be located in the dynamic link library
    >> > R.dll."  I'm pretty sure that procedure is available in R.dll currently,
    >> > so I don't know what the real problem is.
    >> 
    >> The issue is if it is exported from R.dll, which only happened just
    >> before 2.15.2.  Works for me with the Matrix binary package on the CRAN
    >> master and both 2.15.2 and the current R-patched (which in any case
    >> contains that version).
    >> 
    >> >
    >> > I have just rebuilt R, and the same package works fine.  So I'd suggest
    >> > that you download the latest R-patched from CRAN, and hopefully things
    >> > will be fine.
    >> >
    >> > Duncan Murdoch
    >> >
    >> >
    >> >>
    >> >> Thanks in advance for any assistance.
    >> >>
    >> >> Regards,
    >> >> Tolga
    >> >>
    >> >>
    >> >>> remove.packages("Matrix")
    >> >> Removing package(s) from 'H:/R/win-library/2.15'
    >> >> (as 'lib' is unspecified)
    >> >>> install.packages("Matrix")
    >> >> Installing package(s) into 'H:/R/win-library/2.15'
    >> >> (as 'lib' is unspecified)
    >> >> trying URL
    >> >> 'http://cran.ma.imperial.ac.uk/bin/windows/contrib/2.15/Matrix_1.0-10.zip'
    >> >>
    >> >> Content type 'application/zip' length 3289545 bytes (3.1 Mb)
    >> >> opened URL
    >> >> downloaded 3.1 Mb
    >> >>
    >> >> package 'Matrix' successfully unpacked and MD5 sums checked
    >> >>
    >> >> The downloaded binary packages are in
    >> >>          C:\Data\N048564\temp\RtmpoDC7HF\downloaded_packages
    >> >>> library("Matrix")
    >> >> Error in inDL(x, as.logical(local), as.logical(now), ...) :
    >> >>    unable to load shared object
    >> >> 'H:/R/win-library/2.15/Matrix/libs/i386/Matrix.dll':
    >> >>    LoadLibrary failure:  The specified procedure could not be found.
    >> >>
    >> >> In addition: Warning message:
    >> >> package 'Matrix' was built under R version 2.15.2
    >> >> Error: package/namespace load failed for 'Matrix'
    >> >>>
    >> >>
    >> >>
    >> >>
    >> >> This email is confidential and subject to important disclaimers and
    >> >> conditions including on offers for the purchase or sale of
    >> >> securities, accuracy and completeness of information, viruses,
    >> >> confidentiality, legal privilege, and legal entity disclaimers,
    >> >> available at http://www.jpmorgan.com/pages/disclosures/email.
    >> >>     [[alternative HTML version deleted]]
    >> >>
    >> >> ______________________________________________
    >> >> 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.
    >> >>
    >> >
    >> > ______________________________________________
    >> > 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.
    >> 
    >> 

    > ______________________________________________
    > 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.




More information about the R-help mailing list