[R] HELP lme4 & lmerTest INSTALLATION

464 views
Skip to first unread message

CHIRIBOGA Xavier

unread,
Jan 24, 2017, 4:56:11 PM1/24/17
to r-h...@r-project.org
Dear colleagues,


I am having trouble installing lme4 package and this leads me to problems installing lmerTest, when I try to do I got this Error messages:

>install.packages("lme4")
Installing package into 'C:/Users/Hp/Documents/R/win-library/3.3'
(as 'lib' is unspecified)
probando la URL 'http://cran.espol.edu.ec/bin/windows/contrib/3.3/lme4_1.1-12.zip'
Content type 'application/zip' length 4745943 bytes (4.5 MB)
downloaded 4.5 MB

package 'lme4' successfully unpacked and MD5 sums checked
Warning: cannot remove prior installation of package 'lme4'

The downloaded binary packages are in
C:\Users\Hp\AppData\Local\Temp\RtmpWKmMgm\downloaded_packages
> library(lme4)
Error in library(lme4) : there is no package called 'lme4'
> install.packages("lmerTest")
Installing package into 'C:/Users/Hp/Documents/R/win-library/3.3'
(as 'lib' is unspecified)
also installing the dependency 'lme4'

probando la URL 'http://cran.espol.edu.ec/bin/windows/contrib/3.3/lme4_1.1-12.zip'
Content type 'application/zip' length 4745943 bytes (4.5 MB)
downloaded 4.5 MB

probando la URL 'http://cran.espol.edu.ec/bin/windows/contrib/3.3/lmerTest_2.0-33.zip'
Content type 'application/zip' length 1149636 bytes (1.1 MB)
downloaded 1.1 MB

package 'lme4' successfully unpacked and MD5 sums checked
Warning: cannot remove prior installation of package 'lme4'
package 'lmerTest' successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\Hp\AppData\Local\Temp\RtmpWKmMgm\downloaded_packages
> library(lmerTest)
Loading required package: Matrix
Error: package 'lme4' required by 'lmerTest' could not be found
Además: Warning message:
In read.dcf(file.path(p, "DESCRIPTION"), c("Package", "Version")) :
cannot open compressed file 'C:/Users/Hp/Documents/R/win-library/3.3/lme4/DESCRIPTION', probable reason 'No such file or directory'



Could yo please help me?

What to do? I am using latest version : R 3.3.2.


Thank you very much,

Xavier


[[alternative HTML version deleted]]

Rui Barradas

unread,
Jan 25, 2017, 5:47:46 AM1/25/17
to CHIRIBOGA Xavier, r-h...@r-project.org
Hello,

You don't need to install lme4, it comes with base R.
As for package lmerTest, I've just did

> install.packages("lmerTest")
--- Please select a CRAN mirror for use in this session ---
also installing the dependencies ‘checkmate’, ‘survival’, ‘Formula’,
‘latticeExtra’, ‘acepack’, ‘gridExtra’, ‘data.table’, ‘htmlTable’,
‘viridis’, ‘Hmisc’

trying URL
'https://cloud.r-project.org/bin/windows/contrib/3.3/checkmate_1.8.2.zip'
Content type 'application/zip' length 554040 bytes (541 KB)
downloaded 541 KB

trying URL
'https://cloud.r-project.org/bin/windows/contrib/3.3/survival_2.40-1.zip'
Content type 'application/zip' length 5108708 bytes (4.9 MB)
downloaded 4.9 MB

trying URL
'https://cloud.r-project.org/bin/windows/contrib/3.3/Formula_1.2-1.zip'
Content type 'application/zip' length 163536 bytes (159 KB)
downloaded 159 KB

trying URL
'https://cloud.r-project.org/bin/windows/contrib/3.3/latticeExtra_0.6-28.zip'
Content type 'application/zip' length 2069570 bytes (2.0 MB)
downloaded 2.0 MB

trying URL
'https://cloud.r-project.org/bin/windows/contrib/3.3/acepack_1.4.1.zip'
Content type 'application/zip' length 90515 bytes (88 KB)
downloaded 88 KB

trying URL
'https://cloud.r-project.org/bin/windows/contrib/3.3/gridExtra_2.2.1.zip'
Content type 'application/zip' length 483236 bytes (471 KB)
downloaded 471 KB

trying URL
'https://cloud.r-project.org/bin/windows/contrib/3.3/data.table_1.10.0.zip'
Content type 'application/zip' length 1508659 bytes (1.4 MB)
downloaded 1.4 MB

trying URL
'https://cloud.r-project.org/bin/windows/contrib/3.3/htmlTable_1.8.zip'
Content type 'application/zip' length 179208 bytes (175 KB)
downloaded 175 KB

trying URL
'https://cloud.r-project.org/bin/windows/contrib/3.3/viridis_0.3.4.zip'
Content type 'application/zip' length 1746408 bytes (1.7 MB)
downloaded 1.7 MB

trying URL
'https://cloud.r-project.org/bin/windows/contrib/3.3/Hmisc_4.0-2.zip'
Content type 'application/zip' length 1785840 bytes (1.7 MB)
downloaded 1.7 MB

trying URL
'https://cloud.r-project.org/bin/windows/contrib/3.3/lmerTest_2.0-33.zip'
Content type 'application/zip' length 1149547 bytes (1.1 MB)
downloaded 1.1 MB

package ‘checkmate’ successfully unpacked and MD5 sums checked
package ‘survival’ successfully unpacked and MD5 sums checked
package ‘Formula’ successfully unpacked and MD5 sums checked
package ‘latticeExtra’ successfully unpacked and MD5 sums checked
package ‘acepack’ successfully unpacked and MD5 sums checked
package ‘gridExtra’ successfully unpacked and MD5 sums checked
package ‘data.table’ successfully unpacked and MD5 sums checked
package ‘htmlTable’ successfully unpacked and MD5 sums checked
package ‘viridis’ successfully unpacked and MD5 sums checked
package ‘Hmisc’ successfully unpacked and MD5 sums checked


package ‘lmerTest’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in

C:\Users\Convidado\AppData\Local\Temp\RtmpEpipqW\downloaded_packages

> library(lmerTest)

Attaching package: ‘lmerTest’

The following object is masked from ‘package:lme4’:

lmer

The following object is masked from ‘package:stats’:

step


So there was no problem. And my output of install.packages() is quite
different from yours.

If you're having a problem with lme4, maybe as an extreme mesure you
could reinstall R.
And by the way, what is your OS? What is the output of

> sessionInfo()
R version 3.3.2 (2016-10-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

locale:
[1] LC_COLLATE=Portuguese_Portugal.1252
LC_CTYPE=Portuguese_Portugal.1252
[3] LC_MONETARY=Portuguese_Portugal.1252 LC_NUMERIC=C

[5] LC_TIME=Portuguese_Portugal.1252

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] lmerTest_2.0-33 lme4_1.1-12 Matrix_1.2-7.1

loaded via a namespace (and not attached):
[1] Rcpp_0.12.8 Formula_1.2-1 knitr_1.15.1
[4] magrittr_1.5 cluster_2.0.5 splines_3.3.2
[7] MASS_7.3-45 munsell_0.4.3 colorspace_1.3-1
[10] lattice_0.20-34 minqa_1.2.4 stringr_1.1.0
[13] plyr_1.8.4 tools_3.3.2 nnet_7.3-12
[16] grid_3.3.2 data.table_1.10.0 checkmate_1.8.2
[19] htmlTable_1.8 gtable_0.2.0 nlme_3.1-128
[22] latticeExtra_0.6-28 htmltools_0.3.5 digest_0.6.10
[25] survival_2.40-1 lazyeval_0.2.0 assertthat_0.1
[28] tibble_1.2 gridExtra_2.2.1 RColorBrewer_1.1-2
[31] nloptr_1.0.4 ggplot2_2.2.0 base64enc_0.1-3
[34] acepack_1.4.1 rpart_4.1-10 stringi_1.1.2
[37] backports_1.0.4 scales_0.4.1 Hmisc_4.0-2
[40] foreign_0.8-67

Hope this helps,

Rui Barradas

> Adem�s: Warning message:


> In read.dcf(file.path(p, "DESCRIPTION"), c("Package", "Version")) :
> cannot open compressed file 'C:/Users/Hp/Documents/R/win-library/3.3/lme4/DESCRIPTION', probable reason 'No such file or directory'
>
>
>
> Could yo please help me?
>
> What to do? I am using latest version : R 3.3.2.
>
>
> Thank you very much,
>
> Xavier
>
>
> [[alternative HTML version deleted]]
>
>
>

> ______________________________________________
> R-h...@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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-h...@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Thierry Onkelinx

unread,
Jan 25, 2017, 6:44:02 AM1/25/17
to Rui Barradas, r-h...@r-project.org, CHIRIBOGA Xavier
Dear Rui,

nlme is a recommended package, lme4 is (currently) not. You need to install
it.

Best regards,

ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature and
Forest
team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance
Kliniekstraat 25
1070 Anderlecht
Belgium

To call in the statistician after the experiment is done may be no more
than asking him to perform a post-mortem examination: he may be able to say
what the experiment died of. ~ Sir Ronald Aylmer Fisher
The plural of anecdote is not data. ~ Roger Brinner
The combination of some data and an aching desire for an answer does not
ensure that a reasonable answer can be extracted from a given body of data.
~ John Tukey

2017-01-25 11:45 GMT+01:00 Rui Barradas <ruipba...@sapo.pt>:

>
> You don't need to install lme4, it comes with base R.
>

Rui Barradas

unread,
Jan 25, 2017, 9:22:54 AM1/25/17
to Thierry Onkelinx, r-h...@r-project.org, CHIRIBOGA Xavier
Oh, so sorry then, I thought I hadn't installed it and when I did
library(lme4) it ran without error.
Thanks for the correction.

Rui Barradas

Em 25-01-2017 11:42, Thierry Onkelinx escreveu:
> Dear Rui,
>
> nlme is a recommended package, lme4 is (currently) not. You need to
> install it.
>
> Best regards,
>
> ir. Thierry Onkelinx
> Instituut voor natuur- en bosonderzoek / Research Institute for Nature
> and Forest
> team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance
> Kliniekstraat 25
> 1070 Anderlecht
> Belgium
>
> To call in the statistician after the experiment is done may be no more
> than asking him to perform a post-mortem examination: he may be able to
> say what the experiment died of. ~ Sir Ronald Aylmer Fisher
> The plural of anecdote is not data. ~ Roger Brinner
> The combination of some data and an aching desire for an answer does not
> ensure that a reasonable answer can be extracted from a given body of
> data. ~ John Tukey
>
> 2017-01-25 11:45 GMT+01:00 Rui Barradas <ruipba...@sapo.pt
> <mailto:ruipba...@sapo.pt>>:
>
>
> You don't need to install lme4, it comes with base R.
>

CHIRIBOGA Xavier

unread,
Jan 25, 2017, 10:48:12 AM1/25/17
to Thierry Onkelinx, r-h...@r-project.org
Dear Thierry,


So, does it mean that I have to install "nlme" instead of "lme4"? or first "nlme" and after "lme4"???


I also need"lmerTest" and when I installed it, I got the following message:


install.packages("lmerTest")
Installing package into 'C:/Users/Hp/Documents/R/win-library/3.3'
(as 'lib' is unspecified)
Content type 'application/zip' length 1149547 bytes (1.1 MB)
downloaded 1.1 MB

package 'lmerTest' successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\Hp\AppData\Local\Temp\Rtmp6D0iIu\downloaded_packages
> library(lmerTest)
Loading required package: Matrix
Loading required package: lme4

Attaching package: 'lme4'

The following object is masked from 'package:nlme':

lmList


Attaching package: 'lmerTest'

The following object is masked from 'package:lme4':

lmer


THANK YOU FOR YOUR REPLY,


Xavier

________________________________
From: Thierry Onkelinx <thierry....@inbo.be>
Sent: Wednesday, January 25, 2017 12:42 PM
To: Rui Barradas
Cc: CHIRIBOGA Xavier; r-h...@r-project.org
Subject: Re: [R] HELP lme4 & lmerTest INSTALLATION

Dear Rui,

nlme is a recommended package, lme4 is (currently) not. You need to install it.

Best regards,

ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest
team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance
Kliniekstraat 25
1070 Anderlecht
Belgium

To call in the statistician after the experiment is done may be no more than asking him to perform a post-mortem examination: he may be able to say what the experiment died of. ~ Sir Ronald Aylmer Fisher
The plural of anecdote is not data. ~ Roger Brinner
The combination of some data and an aching desire for an answer does not ensure that a reasonable answer can be extracted from a given body of data. ~ John Tukey

2017-01-25 11:45 GMT+01:00 Rui Barradas <ruipba...@sapo.pt<mailto:ruipba...@sapo.pt>>:
Reply all
Reply to author
Forward
0 new messages