Install lme4ord package

lme4ord package is available in GitHub but cannot be installed due to an error:

> library(remotes)
> install_github("stevencarlislewalker/lme4ord")
Downloading GitHub repo stevencarlislewalker/lme4ord@master
Installing 1 packages: ape
essai de l'URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.6/ape_5.3.tgz'
Content type 'application/x-gzip' length 2612810 bytes (2.5 MB)
==================================================
downloaded 2.5 MB


The downloaded binary packages are in
/var/folders/1v/rfxtzxc11kj33kb8tg7znw080000gn/T//RtmprjveC6/downloaded_packages
✓  checking for file ‘/private/var/folders/1v/rfxtzxc11kj33kb8tg7znw080000gn/T/RtmprjveC6/remotesda0d258c4827/stevencarlislewalker-lme4ord-5f62664/DESCRIPTION’ (471ms)
─  preparing ‘lme4ord’:
✓  checking DESCRIPTION meta-information ...
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  building ‘lme4ord_0.0-3.tar.gz’
 
* installing *source* package ‘lme4ord’ ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Erreur : object ‘sigma’ is not exported by 'namespace:lme4'
Exécution arrêtée
ERROR: lazy loading failed for package ‘lme4ord’
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/lme4ord’
Erreur : Failed to install 'lme4ord' from GitHub:
  (converti depuis l'avis) installation of package ‘/var/folders/1v/rfxtzxc11kj33kb8tg7znw080000gn/T//RtmprjveC6/fileda0d27315707/lme4ord_0.0-3.tar.gz’ had non-zero exit status

The solution is to download the files from GitHub and edit the file NAMESPACE
Locate and delete this line:
importFrom(lme4,sigma)

Then you can install the package using:
install.packages("/path/lme4ord-master", repos=NULL, type="source")

Replacing path with the correct path.

Commentaires

Posts les plus consultés de ce blog

Standard error from Hessian Matrix... what can be done when problem occurs

stepAIC from package MASS with AICc

Install treemix in ubuntu 20.04