Jean-Romain / lidRplugins

Extra functions and algorithms for lidR package
42 stars 15 forks source link

Windows Installation Failure #1

Closed JakubCha closed 5 years ago

JakubCha commented 5 years ago

Hello,

I am trying to install lidRplugins for R 3.5.1 I receive a failure message. At the same time, I successfully installed lidR 2.0 from github in the same environment. Environment info: R 3.5.1 Rtools 3.5 (it is the newest one as far as I can see here https://cran.r-project.org/bin/windows/Rtools/) Windows 10 x64

This is a log message in R:

> devtools::install_github("Jean-Romain/lidRplugins")
Downloading GitHub repo Jean-Romain/lidRplugins@master
from URL https://api.github.com/repos/Jean-Romain/lidRplugins/zipball/master
WARNING: Rtools is required to build R packages, but no version of Rtools compatible with R 3.5.1 was found. (Only the following incompatible version(s) of Rtools were found:3.5)

Please download and install the appropriate version of Rtools from http://cran.r-project.org/bin/windows/Rtools/.
Installing lidRplugins
Downloading GitHub repo Jean-Romain/lidR@devel
from URL https://api.github.com/repos/Jean-Romain/lidR/zipball/devel
WARNING: Rtools is required to build R packages, but no version of Rtools compatible with R 3.5.1 was found. (Only the following incompatible version(s) of Rtools were found:3.5)

Please download and install the appropriate version of Rtools from http://cran.r-project.org/bin/windows/Rtools/.
Installing lidR
"E:/R-3.5.1/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL  \
  "C:/Users/Dell/AppData/Local/Temp/RtmpeMvcME/devtools529c1218183d/Jean-Romain-lidR-27a4790" --library="E:/R-3.5.1/library" --install-tests 

* installing *source* package 'lidR' ...
** libs

*** arch - i386
Warning in command 'system(cmd)': 'make' not found
ERROR: compilation failed for package 'lidR'
* removing 'E:/R-3.5.1/library/lidR'
* restoring previous 'E:/R-3.5.1/library/lidR'
In R CMD INSTALL
Installation failed: Command failed (1)
"E:/R-3.5.1/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL  \
  "C:/Users/Dell/AppData/Local/Temp/RtmpeMvcME/devtools529c61b27a/Jean-Romain-lidRplugins-6bc0859" --library="E:/R-3.5.1/library" --install-tests 

* installing *source* package 'lidRplugins' ...
** libs

*** arch - i386
Ostrzeżenie w poleceniu 'system(cmd)': 'make' not found
ERROR: compilation failed for package 'lidRplugins'
* removing 'E:/R-3.5.1/library/lidRplugins'
In R CMD INSTALL
Installation failed: Command failed (1)

Regards :)

JakubCha commented 5 years ago

After scavenging through rtools related issues I found that it may be rtools problem. Have somebody had these issues with lidRplugins?

JakubCha commented 5 years ago

Rtools problem. Uninstalled and installed once again setting right paths to Rtools. To make this issue actually meaningful I paste install log with some warnings :-) Cheers Jean!

The downloaded binary packages are in
    C:\Users\Dell\AppData\Local\Temp\RtmpeGqKL0\downloaded_packages
√  checking for file 'C:\Users\Dell\AppData\Local\Temp\RtmpeGqKL0\remotes3b42ef96df7\Jean-Romain-lidRplugins-6bc0859/DESCRIPTION' ...
-  preparing 'lidRplugins':
√  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 'lidRplugins_0.1.0.tar.gz'

* installing *source* package 'lidRplugins' ...
** libs

*** arch - i386
c:/Rtools/mingw_32/bin/g++  -I"E:/R-3.5.1/include" -DNDEBUG  -I"E:/R-3.5.1/library/BH/include" -I"E:/R-3.5.1/library/Rcpp/include" -I"E:/R-3.5.1/library/RcppArmadillo/include"        -O2 -Wall  -mtune=generic -c BoundingBox.cpp -o BoundingBox.o
c:/Rtools/mingw_32/bin/g++  -I"E:/R-3.5.1/include" -DNDEBUG  -I"E:/R-3.5.1/library/BH/include" -I"E:/R-3.5.1/library/Rcpp/include" -I"E:/R-3.5.1/library/RcppArmadillo/include"        -O2 -Wall  -mtune=generic -c C_lastree_hamraz.cpp -o C_lastree_hamraz.o
c:/Rtools/mingw_32/bin/g++  -I"E:/R-3.5.1/include" -DNDEBUG  -I"E:/R-3.5.1/library/BH/include" -I"E:/R-3.5.1/library/Rcpp/include" -I"E:/R-3.5.1/library/RcppArmadillo/include"        -O2 -Wall  -mtune=generic -c C_lastrees_Ptrees.cpp -o C_lastrees_Ptrees.o
c:/Rtools/mingw_32/bin/g++  -I"E:/R-3.5.1/include" -DNDEBUG  -I"E:/R-3.5.1/library/BH/include" -I"E:/R-3.5.1/library/Rcpp/include" -I"E:/R-3.5.1/library/RcppArmadillo/include"        -O2 -Wall  -mtune=generic -c HamrazProfiles.cpp -o HamrazProfiles.o
c:/Rtools/mingw_32/bin/g++  -I"E:/R-3.5.1/include" -DNDEBUG  -I"E:/R-3.5.1/library/BH/include" -I"E:/R-3.5.1/library/Rcpp/include" -I"E:/R-3.5.1/library/RcppArmadillo/include"        -O2 -Wall  -mtune=generic -c Progress.cpp -o Progress.o
c:/Rtools/mingw_32/bin/g++  -I"E:/R-3.5.1/include" -DNDEBUG  -I"E:/R-3.5.1/library/BH/include" -I"E:/R-3.5.1/library/Rcpp/include" -I"E:/R-3.5.1/library/RcppArmadillo/include"        -O2 -Wall  -mtune=generic -c QuadTree.cpp -o QuadTree.o
c:/Rtools/mingw_32/bin/g++  -I"E:/R-3.5.1/include" -DNDEBUG  -I"E:/R-3.5.1/library/BH/include" -I"E:/R-3.5.1/library/Rcpp/include" -I"E:/R-3.5.1/library/RcppArmadillo/include"        -O2 -Wall  -mtune=generic -c RcppExports.cpp -o RcppExports.o
c:/Rtools/mingw_32/bin/g++  -I"E:/R-3.5.1/include" -DNDEBUG  -I"E:/R-3.5.1/library/BH/include" -I"E:/R-3.5.1/library/Rcpp/include" -I"E:/R-3.5.1/library/RcppArmadillo/include"        -O2 -Wall  -mtune=generic -c Shapes.cpp -o Shapes.o
c:/Rtools/mingw_32/bin/g++  -I"E:/R-3.5.1/include" -DNDEBUG  -I"E:/R-3.5.1/library/BH/include" -I"E:/R-3.5.1/library/Rcpp/include" -I"E:/R-3.5.1/library/RcppArmadillo/include"        -O2 -Wall  -mtune=generic -c TreeSegment.cpp -o TreeSegment.o
In file included from E:/R-3.5.1/library/BH/include/boost/geometry/strategies/cartesian/intersection.hpp:37:0,
                 from E:/R-3.5.1/library/BH/include/boost/geometry/strategies/intersection_strategies.hpp:28,
                 from E:/R-3.5.1/library/BH/include/boost/geometry/strategies/strategies.hpp:37,
                 from E:/R-3.5.1/library/BH/include/boost/geometry/geometry.hpp:50,
                 from E:/R-3.5.1/library/BH/include/boost/geometry.hpp:17,
                 from TreeSegment.h:7,
                 from TreeSegment.cpp:1:
E:/R-3.5.1/library/BH/include/boost/geometry/strategies/cartesian/distance_pythagoras.hpp: In function 'void ptrees::TreeSegment::compute_orientation_score()':
E:/R-3.5.1/library/BH/include/boost/geometry/strategies/cartesian/distance_pythagoras.hpp:44:26: warning: '*((void*)& G +8)' may be used uninitialized in this function [-Wmaybe-uninitialized]
         T const d = c1 - c2;
                          ^
TreeSegment.cpp:147:11: note: '*((void*)& G +8)' was declared here
   point_t G;
           ^
In file included from E:/R-3.5.1/library/BH/include/boost/geometry/strategies/cartesian/intersection.hpp:37:0,
                 from E:/R-3.5.1/library/BH/include/boost/geometry/strategies/intersection_strategies.hpp:28,
                 from E:/R-3.5.1/library/BH/include/boost/geometry/strategies/strategies.hpp:37,
                 from E:/R-3.5.1/library/BH/include/boost/geometry/geometry.hpp:50,
                 from E:/R-3.5.1/library/BH/include/boost/geometry.hpp:17,
                 from TreeSegment.h:7,
                 from TreeSegment.cpp:1:
E:/R-3.5.1/library/BH/include/boost/geometry/strategies/cartesian/distance_pythagoras.hpp:44:26: warning: 'G' may be used uninitialized in this function [-Wmaybe-uninitialized]
         T const d = c1 - c2;
                          ^
TreeSegment.cpp:147:11: note: 'G' was declared here
   point_t G;
           ^
c:/Rtools/mingw_32/bin/g++  -I"E:/R-3.5.1/include" -DNDEBUG  -I"E:/R-3.5.1/library/BH/include" -I"E:/R-3.5.1/library/Rcpp/include" -I"E:/R-3.5.1/library/RcppArmadillo/include"        -O2 -Wall  -mtune=generic -c TreeSegmentManager.cpp -o TreeSegmentManager.o
In file included from E:/R-3.5.1/library/Rcpp/include/Rcpp/vector/Vector.h:1124:0,
                 from E:/R-3.5.1/library/Rcpp/include/Rcpp/Vector.h:52,
                 from E:/R-3.5.1/library/Rcpp/include/Rcpp.h:40,
                 from E:/R-3.5.1/library/RcppArmadillo/include/RcppArmadillo.h:34,
                 from TreeSegment.h:10,
                 from TreeSegmentManager.h:4,
                 from TreeSegmentManager.cpp:1:
E:/R-3.5.1/library/Rcpp/include/Rcpp/generated/Vector__create.h: In member function 'Rcpp::List ptrees::TreeSegmentManager::to_R()':
E:/R-3.5.1/library/Rcpp/include/Rcpp/generated/Vector__create.h:124:2: warning: '*((void*)& bary +8)' may be used uninitialized in this function [-Wmaybe-uninitialized]
  *it = converter_type::get(t2) ; ++it ;
  ^
TreeSegmentManager.cpp:280:13: note: '*((void*)& bary +8)' was declared here
     point_t bary;
             ^
In file included from E:/R-3.5.1/library/Rcpp/include/Rcpp/vector/Vector.h:1124:0,
                 from E:/R-3.5.1/library/Rcpp/include/Rcpp/Vector.h:52,
                 from E:/R-3.5.1/library/Rcpp/include/Rcpp.h:40,
                 from E:/R-3.5.1/library/RcppArmadillo/include/RcppArmadillo.h:34,
                 from TreeSegment.h:10,
                 from TreeSegmentManager.h:4,
                 from TreeSegmentManager.cpp:1:
E:/R-3.5.1/library/Rcpp/include/Rcpp/generated/Vector__create.h:123:2: warning: 'bary' may be used uninitialized in this function [-Wmaybe-uninitialized]
  *it = converter_type::get(t1) ; ++it ;
  ^
TreeSegmentManager.cpp:280:13: note: 'bary' was declared here
     point_t bary;
             ^
c:/Rtools/mingw_32/bin/g++ -shared -s -static-libgcc -o lidRplugins.dll tmp.def BoundingBox.o C_lastree_hamraz.o C_lastrees_Ptrees.o HamrazProfiles.o Progress.o QuadTree.o RcppExports.o Shapes.o TreeSegment.o TreeSegmentManager.o -LE:/R-3.5.1/bin/i386 -lRlapack -LE:/R-3.5.1/bin/i386 -lRblas -lgfortran -lm -lquadmath -LE:/R-3.5.1/bin/i386 -lR
installing to E:/R-3.5.1/library/lidRplugins/libs/i386

*** arch - x64
c:/Rtools/mingw_64/bin/g++  -I"E:/R-3.5.1/include" -DNDEBUG  -I"E:/R-3.5.1/library/BH/include" -I"E:/R-3.5.1/library/Rcpp/include" -I"E:/R-3.5.1/library/RcppArmadillo/include"        -O2 -Wall  -mtune=generic -c BoundingBox.cpp -o BoundingBox.o
c:/Rtools/mingw_64/bin/g++  -I"E:/R-3.5.1/include" -DNDEBUG  -I"E:/R-3.5.1/library/BH/include" -I"E:/R-3.5.1/library/Rcpp/include" -I"E:/R-3.5.1/library/RcppArmadillo/include"        -O2 -Wall  -mtune=generic -c C_lastree_hamraz.cpp -o C_lastree_hamraz.o
c:/Rtools/mingw_64/bin/g++  -I"E:/R-3.5.1/include" -DNDEBUG  -I"E:/R-3.5.1/library/BH/include" -I"E:/R-3.5.1/library/Rcpp/include" -I"E:/R-3.5.1/library/RcppArmadillo/include"        -O2 -Wall  -mtune=generic -c C_lastrees_Ptrees.cpp -o C_lastrees_Ptrees.o
c:/Rtools/mingw_64/bin/g++  -I"E:/R-3.5.1/include" -DNDEBUG  -I"E:/R-3.5.1/library/BH/include" -I"E:/R-3.5.1/library/Rcpp/include" -I"E:/R-3.5.1/library/RcppArmadillo/include"        -O2 -Wall  -mtune=generic -c HamrazProfiles.cpp -o HamrazProfiles.o
c:/Rtools/mingw_64/bin/g++  -I"E:/R-3.5.1/include" -DNDEBUG  -I"E:/R-3.5.1/library/BH/include" -I"E:/R-3.5.1/library/Rcpp/include" -I"E:/R-3.5.1/library/RcppArmadillo/include"        -O2 -Wall  -mtune=generic -c Progress.cpp -o Progress.o
c:/Rtools/mingw_64/bin/g++  -I"E:/R-3.5.1/include" -DNDEBUG  -I"E:/R-3.5.1/library/BH/include" -I"E:/R-3.5.1/library/Rcpp/include" -I"E:/R-3.5.1/library/RcppArmadillo/include"        -O2 -Wall  -mtune=generic -c QuadTree.cpp -o QuadTree.o
c:/Rtools/mingw_64/bin/g++  -I"E:/R-3.5.1/include" -DNDEBUG  -I"E:/R-3.5.1/library/BH/include" -I"E:/R-3.5.1/library/Rcpp/include" -I"E:/R-3.5.1/library/RcppArmadillo/include"        -O2 -Wall  -mtune=generic -c RcppExports.cpp -o RcppExports.o
c:/Rtools/mingw_64/bin/g++  -I"E:/R-3.5.1/include" -DNDEBUG  -I"E:/R-3.5.1/library/BH/include" -I"E:/R-3.5.1/library/Rcpp/include" -I"E:/R-3.5.1/library/RcppArmadillo/include"        -O2 -Wall  -mtune=generic -c Shapes.cpp -o Shapes.o
c:/Rtools/mingw_64/bin/g++  -I"E:/R-3.5.1/include" -DNDEBUG  -I"E:/R-3.5.1/library/BH/include" -I"E:/R-3.5.1/library/Rcpp/include" -I"E:/R-3.5.1/library/RcppArmadillo/include"        -O2 -Wall  -mtune=generic -c TreeSegment.cpp -o TreeSegment.o
In file included from E:/R-3.5.1/library/BH/include/boost/geometry/strategies/cartesian/intersection.hpp:37:0,
                 from E:/R-3.5.1/library/BH/include/boost/geometry/strategies/intersection_strategies.hpp:28,
                 from E:/R-3.5.1/library/BH/include/boost/geometry/strategies/strategies.hpp:37,
                 from E:/R-3.5.1/library/BH/include/boost/geometry/geometry.hpp:50,
                 from E:/R-3.5.1/library/BH/include/boost/geometry.hpp:17,
                 from TreeSegment.h:7,
                 from TreeSegment.cpp:1:
E:/R-3.5.1/library/BH/include/boost/geometry/strategies/cartesian/distance_pythagoras.hpp: In function 'void ptrees::TreeSegment::compute_orientation_score()':
E:/R-3.5.1/library/BH/include/boost/geometry/strategies/cartesian/distance_pythagoras.hpp:44:26: warning: '*((void*)& G +8)' may be used uninitialized in this function [-Wmaybe-uninitialized]
         T const d = c1 - c2;
                          ^
TreeSegment.cpp:147:11: note: '*((void*)& G +8)' was declared here
   point_t G;
           ^
In file included from E:/R-3.5.1/library/BH/include/boost/geometry/strategies/cartesian/intersection.hpp:37:0,
                 from E:/R-3.5.1/library/BH/include/boost/geometry/strategies/intersection_strategies.hpp:28,
                 from E:/R-3.5.1/library/BH/include/boost/geometry/strategies/strategies.hpp:37,
                 from E:/R-3.5.1/library/BH/include/boost/geometry/geometry.hpp:50,
                 from E:/R-3.5.1/library/BH/include/boost/geometry.hpp:17,
                 from TreeSegment.h:7,
                 from TreeSegment.cpp:1:
E:/R-3.5.1/library/BH/include/boost/geometry/strategies/cartesian/distance_pythagoras.hpp:44:26: warning: 'G' may be used uninitialized in this function [-Wmaybe-uninitialized]
         T const d = c1 - c2;
                          ^
TreeSegment.cpp:147:11: note: 'G' was declared here
   point_t G;
           ^
c:/Rtools/mingw_64/bin/g++  -I"E:/R-3.5.1/include" -DNDEBUG  -I"E:/R-3.5.1/library/BH/include" -I"E:/R-3.5.1/library/Rcpp/include" -I"E:/R-3.5.1/library/RcppArmadillo/include"        -O2 -Wall  -mtune=generic -c TreeSegmentManager.cpp -o TreeSegmentManager.o
In file included from E:/R-3.5.1/library/Rcpp/include/Rcpp/vector/Vector.h:1124:0,
                 from E:/R-3.5.1/library/Rcpp/include/Rcpp/Vector.h:52,
                 from E:/R-3.5.1/library/Rcpp/include/Rcpp.h:40,
                 from E:/R-3.5.1/library/RcppArmadillo/include/RcppArmadillo.h:34,
                 from TreeSegment.h:10,
                 from TreeSegmentManager.h:4,
                 from TreeSegmentManager.cpp:1:
E:/R-3.5.1/library/Rcpp/include/Rcpp/generated/Vector__create.h: In member function 'Rcpp::List ptrees::TreeSegmentManager::to_R()':
E:/R-3.5.1/library/Rcpp/include/Rcpp/generated/Vector__create.h:124:2: warning: '*((void*)& bary +8)' may be used uninitialized in this function [-Wmaybe-uninitialized]
  *it = converter_type::get(t2) ; ++it ;
  ^
TreeSegmentManager.cpp:280:13: note: '*((void*)& bary +8)' was declared here
     point_t bary;
             ^
In file included from E:/R-3.5.1/library/Rcpp/include/Rcpp/vector/Vector.h:1124:0,
                 from E:/R-3.5.1/library/Rcpp/include/Rcpp/Vector.h:52,
                 from E:/R-3.5.1/library/Rcpp/include/Rcpp.h:40,
                 from E:/R-3.5.1/library/RcppArmadillo/include/RcppArmadillo.h:34,
                 from TreeSegment.h:10,
                 from TreeSegmentManager.h:4,
                 from TreeSegmentManager.cpp:1:
E:/R-3.5.1/library/Rcpp/include/Rcpp/generated/Vector__create.h:123:2: warning: 'bary' may be used uninitialized in this function [-Wmaybe-uninitialized]
  *it = converter_type::get(t1) ; ++it ;
  ^
TreeSegmentManager.cpp:280:13: note: 'bary' was declared here
     point_t bary;
             ^
c:/Rtools/mingw_64/bin/g++ -shared -s -static-libgcc -o lidRplugins.dll tmp.def BoundingBox.o C_lastree_hamraz.o C_lastrees_Ptrees.o HamrazProfiles.o Progress.o QuadTree.o RcppExports.o Shapes.o TreeSegment.o TreeSegmentManager.o -LE:/R-3.5.1/bin/x64 -lRlapack -LE:/R-3.5.1/bin/x64 -lRblas -lgfortran -lm -lquadmath -LE:/R-3.5.1/bin/x64 -lR
installing to E:/R-3.5.1/library/lidRplugins/libs/x64
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
  converting help for package 'lidRplugins'
    finding HTML links ... wykonano
    hamraz2016                              html  
    lmfx                                    html  
    multichm                                html  
    finding level-2 HTML links ... done

    ptrees                                  html  
** building package indices
** testing if installed package can be loaded
*** arch - i386
*** arch - x64
* DONE (lidRplugins)
Making 'packages.html' ... wykonano
In R CMD INSTALL
sara-marson commented 4 years ago

Hi, I am trying to install lidRplugins for R x64 3.6.0. I installed Rtools 3.5. I receive the following failure message and I don't understand what should I do. Thank you in advance

> devtools::install_github("Jean-Romain/lidRplugins")
Downloading GitHub repo Jean-Romain/lidRplugins@master
These packages have more recent versions available.
It is recommended to update all of them.
Which would you like to update?

 1: All                                    
 2: CRAN packages only                     
 3: None                                   
 4: glue         (1.3.1  -> 1.3.2  ) [CRAN]
 5: sp           (1.4-0  -> 1.4-1  ) [CRAN]
 6: digest       (0.6.24 -> 0.6.25 ) [CRAN]
 7: shiny        (1.4.0  -> 1.4.0.2) [CRAN]
 8: crosstalk    (1.0.0  -> 1.1.0.1) [CRAN]
 9: manipulat... (0.10.0 -> 0.10.1 ) [CRAN]
10: rlang        (0.4.4  -> 0.4.5  ) [CRAN]
11: units        (0.6-5  -> 0.6-6  ) [CRAN]

Enter one or more numbers, or an empty line to skip updates:
1
NA           (NA     -> 663bc7288...) [Git]
assertive    (NA     -> 0.3-5       ) [CRAN]
fpc          (NA     -> 2.2-5       ) [CRAN]
glue         (1.3.1  -> 1.3.2       ) [CRAN]
sp           (1.4-0  -> 1.4-1       ) [CRAN]
digest       (0.6.24 -> 0.6.25      ) [CRAN]
shiny        (1.4.0  -> 1.4.0.2     ) [CRAN]
crosstalk    (1.0.0  -> 1.1.0.1     ) [CRAN]
manipulat... (0.10.0 -> 0.10.1      ) [CRAN]
rlang        (0.4.4  -> 0.4.5       ) [CRAN]
units        (0.6-5  -> 0.6-6       ) [CRAN]
assertive... (NA     -> 0.0-7       ) [CRAN]
assertive... (NA     -> 0.0-4       ) [CRAN]
assertive... (NA     -> 0.0-3       ) [CRAN]
assertive... (NA     -> 0.0-2       ) [CRAN]
assertive... (NA     -> 0.0-3       ) [CRAN]
mclust       (NA     -> 5.4.5       ) [CRAN]
DEoptimR     (NA     -> 1.0-8       ) [CRAN]
assertive... (NA     -> 0.0-2       ) [CRAN]
assertive... (NA     -> 0.0-2       ) [CRAN]
assertive... (NA     -> 0.0-3       ) [CRAN]
assertive... (NA     -> 0.0-2       ) [CRAN]
assertive... (NA     -> 0.0-2       ) [CRAN]
assertive... (NA     -> 0.0-3       ) [CRAN]
assertive... (NA     -> 0.0-2       ) [CRAN]
assertive... (NA     -> 0.0-2       ) [CRAN]
assertive... (NA     -> 0.0-4       ) [CRAN]
assertive... (NA     -> 0.0-3       ) [CRAN]
flexmix      (NA     -> 2.3-15      ) [CRAN]
prabclus     (NA     -> 2.3-2       ) [CRAN]
diptest      (NA     -> 0.75-7      ) [CRAN]
robustbase   (NA     -> 0.93-6      ) [CRAN]
Skipping 2 packages not available: velox, EBImage
Downloading git repo https://github.com/Jean-Romain/RcppConcaveman.git
√  checking for file 'C:\Users\saram\AppData\Local\Temp\Rtmpyk4wp5\file42042a3c44cf/DESCRIPTION' ...
-  preparing 'RcppConcaveman':
√  checking DESCRIPTION meta-information ... 
-  cleaning src
-  installing the package to process help pages
         -----------------------------------
-  installing *source* package 'RcppConcaveman' ...
   ** using staged installation
   ** libs
   C:/Program Files/R/R-3.6.0/Rtools/mingw_64/bin/g++  -I"C:/PROGRA~1/R/R-36~1.0/include" -DNDEBUG -I../inst/include/ -I"C:/Users/saram/OneDrive/Documents/R/win-library/3.6/Rcpp/include"        -O2 -Wall  -mtune=generic -c RcppConvaveman.cpp -o RcppConvaveman.o
   sh: C:/Program: No such file or directory
   make: *** [C:/PROGRA~1/R/R-36~1.0/etc/x64/Makeconf:215: RcppConvaveman.o] Error 127
   ERROR: compilation failed for package 'RcppConcaveman'
-  removing 'C:/Users/saram/AppData/Local/Temp/RtmpGKAlVl/Rinst3d384941dc4/RcppConcaveman'
         -----------------------------------
   ERROR: package installation failed
Errore: Failed to install 'lidRplugins' from GitHub:
  Failed to install 'unknown package' from Git:
  System command 'Rcmd.exe' failed, exit status: 1, stdout + stderr (last 10 lines):
E> * installing *source* package 'RcppConcaveman' ...
E> ** using staged installation
E> ** libs
E> C:/Program Files/R/R-3.6.0/Rtools/mingw_64/bin/g++  -I"C:/PROGRA~1/R/R-36~1.0/include" -DNDEBUG -I../inst/include/ -I"C:/Users/saram/OneDrive/Documents/R/win-library/3.6/Rcpp/include"        -O2 -Wall  -mtune=generic -c RcppConvaveman.cpp -o RcppConvaveman.o
E> sh: C:/Program: No such file or directory
E> make: *** [C:/PROGRA~1/R/R-36~1.0/etc/x64/Makeconf:215: RcppConvaveman.o] Error 127
E> ERROR: compilation failed for package 'RcppConcaveman'
E> * removing 'C:/Users/saram/AppData/Local/Temp/RtmpGKAlVl/Rinst3d384941dc4/RcppConcaveman'
E>       -----------------------------------
E> ERROR: package installation failed
> 
Jean-Romain commented 4 years ago

You don't have a C++ compiler. See the README

sara-marson commented 4 years ago

Thanks for your answer, Jean. The problem is that the RcppConvaveman package does not compile, I don't know how to do, I mean what step to do in practice. What do you mean with "You don't have a C++ compiler"? Now I have this failure message:

ERROR: package installation failed
Errore: Failed to install 'lidRplugins' from GitHub:
  Failed to install 'unknown package' from Git:
  System command 'Rcmd.exe' failed, exit status: 1, stdout + stderr (last 10 lines):
E>              ^
E> RcppConvaveman.cpp:25:20: error: expected ';' before 'i'
E>    for (auto i = 0; i < n; i++)
E>                     ^
E> RcppConvaveman.cpp:25:20: error: 'i' was not declared in this scope
E> make: *** [C:/PROGRA~1/R/R-36~1.0/etc/x64/Makeconf:215: RcppConvaveman.o] Error 1
E> ERROR: compilation failed for package 'RcppConcaveman'
E> * removing 'C:/Users/saram/AppData/Local/Temp/RtmpG2qRq2/Rinst1ddc321d3b8c/RcppConcaveman'
E>       -----------------------------------
E> ERROR: package installation failed
Jean-Romain commented 4 years ago

You have an old version of R and your C++ compiler is not compiling in C++11 by default. I updated the RcppConcaveman package to force C++11 compilation. Try to reinstall RcppConcaveman. It should work.

devtools::install_github("Jean-Romain/RcppConcaveman")
sara-marson commented 4 years ago

ok, I installed RcppConcaveman correctly. Now, when I install lidRplugins, I have this error with the package 'velox'

Installing 32 packages: assertive, fpc, velox, glue, sp, digest, shiny, crosstalk, manipulateWidget, rlang, units, assertive.base, assertive.properties, assertive.types, assertive.numbers, assertive.strings, mclust, DEoptimR, assertive.datetimes, assertive.files, assertive.sets, assertive.matrices, assertive.models, assertive.data, assertive.data.uk, assertive.data.us, assertive.reflection, assertive.code, flexmix, prabclus, diptest, robustbase
Installing packages into ‘C:/Users/saram/OneDrive/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
Errore: Failed to install 'lidRplugins' from GitHub:
  (contertito da avviso) package ‘velox’ is not available (for R version 3.6.0)
Jean-Romain commented 4 years ago

Well that is a real issue. The package velox is no longer on CRAN. https://cran.r-project.org/web/packages/velox/ (removed a week ago). I changed lidRplugins to suggest velox so you will be able to install it without velox but some function will be slow and won't work. You can also install it from github https://github.com/hunzikp/velox

sara-marson commented 4 years ago

Super! Thanks a lot, Jean, I did it.