bcm-uga / lfmm

Fitting latent factor mixed models
https://bcm-uga.github.io/lfmm/index.html
GNU General Public License v3.0
11 stars 0 forks source link

Issue Installing lfmm #5

Open nicholasprice79 opened 5 years ago

nicholasprice79 commented 5 years ago

Hi,

I am trying to install 'lfmm' on R 3.6.1 (windows 64bit) and I am having the following problem

devtools::install_github("bcm-uga/lfmm") Downloading GitHub repo bcm-uga/lfmm@master Your system is ready to build packages! Installing 1 packages: RcppEigen trying URL 'https://cran.revolutionanalytics.com/bin/windows/contrib/3.6/RcppEigen_0.3.3.5.0.zip' Content type 'application/zip' length 2675544 bytes (2.6 MB) downloaded 2.6 MB

package ‘RcppEigen’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in C:\Users\Nicholas Price\AppData\Local\Temp\RtmpsRg0R3\downloaded_packages

checking for file 'C:\Users\Nicholas Price\AppData\Local\Temp\RtmpsRg0R3\remotes8846a757c73\bcm-uga-lfmm-5411c35/DESCRIPTION' ...

√ checking for file 'C:\Users\Nicholas Price\AppData\Local\Temp\RtmpsRg0R3\remotes8846a757c73\bcm-uga-lfmm-5411c35/DESCRIPTION'

√ checking DESCRIPTION meta-information

ERROR: lazy loading failed for package 'lfmm'

xiahui625649 commented 4 years ago

Hi,

I am trying to install 'lfmm' on R 3.6.1 (windows 64bit) and I am having the following problem,can you help me?

 devtools::install_github("bcm-uga/lfmm")
Downloading GitHub repo bcm-uga/lfmm@master
√  checking for file 'C:\Users\XH\AppData\Local\Temp\Rtmpkjoedu\remotes28c090d5e48\bcm-uga-lfmm-5411c35/DESCRIPTION' ...
-  preparing 'lfmm':
√  checking DESCRIPTION meta-information ... 
-  cleaning src
-  checking for LF line-endings in source and make files and shell scripts
-  checking for empty or unneeded directories
-  looking to see if a 'data/datalist' file should be added
-  building 'lfmm_0.0.tar.gz'

Installing package into ‘C:/Users/XH/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
* installing *source* package 'lfmm' ...
** using staged installation
** libs

*** arch - i386
C:/Rtools/mingw_32/bin/g++  -I"C:/PROGRA~1/R/R-36~1.0/include" -DNDEBUG  -I"C:/Users/XH/Documents/R/win-library/3.6/Rcpp/include" -I"C:/Users/XH/Documents/R/win-library/3.6/RcppEigen/include"        -O2 -Wall  -mtune=generic -c RcppExports.cpp -o RcppExports.o
sh: C:/Rtools/mingw_32/bin/g++: No such file or directory
make: *** [C:/PROGRA~1/R/R-36~1.0/etc/i386/Makeconf:215: RcppExports.o] Error 127
ERROR: compilation failed for package 'lfmm'
* removing 'C:/Users/XH/Documents/R/win-library/3.6/lfmm'
Error: Failed to install 'lfmm' from GitHub:
  (converted from warning) installation of package ‘C:/Users/XH/AppData/Local/Temp/Rtmpkjoedu/file28c044db129d/lfmm_0.0.tar.gz’ had non-zero exit status
StuntsPT commented 4 years ago

@nicholasprice79 The issue you are experiencing is due to a space in your username: "Nicholas Price". R is, for some reason, erroring out because of that. This was probably not very tested on windows, but rather on *nix systems where usernames cannot have whitespace. You can try the workaround stated here

@xiahui625649 You are probably missing "Rtools". Check this guide for instructions on how to do that.