prafols / rMSI

R MSI Tools
GNU General Public License v3.0
15 stars 5 forks source link

Installation rMSI issue #5

Closed Dathan87 closed 4 years ago

Dathan87 commented 4 years ago

Hi, I am trying to install rMSI but I have got this error when I use devtools.

> devtools::install_github("prafols/rMSI", ref = "0.8")
Downloading GitHub repo prafols/rMSI@0.8
√  checking for file 'C:\Users\marcogia\AppData\Local\Temp\Rtmpie4efH\remotes2a304e794942\prafols-rMSI-907143a/DESCRIPTION' ...
-  preparing 'rMSI':
√  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
-  building 'rMSI_0.7.tar.gz'

Installing package into ‘\\home.ansatt.ntnu.no/marcogia/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
'\\home.ansatt.ntnu.no\marcogia\Documents'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.
* installing *source* package 'rMSI' ...
** libs

*** arch - i386
C:/Rtools/mingw_32/bin/g++  -I"C:/PROGRA~1/R/R-35~1.2/include" -DNDEBUG  -I"\\home.ansatt.ntnu.no/marcogia/Documents/R/win-library/3.5/Rcpp/include"        -O2 -Wall  -mtune=generic -c RcppExports.cpp -o RcppExports.o
RcppExports.cpp:4:18: fatal error: Rcpp.h: No such file or directory
 #include <Rcpp.h>
                  ^
compilation terminated.
make: *** [C:/PROGRA~1/R/R-35~1.2/etc/i386/Makeconf:215: RcppExports.o] Error 1
ERROR: compilation failed for package 'rMSI'
* removing '\\home.ansatt.ntnu.no/marcogia/Documents/R/win-library/3.5/rMSI'
In R CMD INSTALL
Error: Failed to install 'rMSI' from GitHub:
  (converted from warning) installation of package ‘C:/Users/marcogia/AppData/Local/Temp/Rtmpie4efH/file2a30739a4e3c/rMSI_0.7.tar.gz’ had non-zero exit status

Thanks in advance for your help

Dathan87 commented 4 years ago
> version
               _                           
platform       x86_64-w64-mingw32          
arch           x86_64                      
os             mingw32                     
system         x86_64, mingw32             
status                                     
major          3                           
minor          5.2                         
year           2018                        
month          12                          
day            20                          
svn rev        75870                       
language       R                           
version.string R version 3.5.2 (2018-12-20)
nickname       Eggshell Igloo 
prafols commented 4 years ago

It seams a dependency related problem on windows build system. Try the following:

  1. Be sure you have installed Rtools and enabled the "set path" checkbox on the installation wizard (I do not understand the reasons but it is disabled by default)

  2. Sometimes it helps to have Rcpp installed before installing rMSI. So, install it with: install.packages('Rcpp')

Dathan87 commented 4 years ago

Thank you! I have followed your suggestions and it is working.

prafols commented 4 years ago

I'm glad to hear this! Making this issue as closed