-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathconfigure
More file actions
executable file
·7 lines (6 loc) · 850 Bytes
/
configure
File metadata and controls
executable file
·7 lines (6 loc) · 850 Bytes
1
2
3
4
5
6
7
#!/bin/sh
set -x
set -e
${R_HOME}/bin/Rscript -e "if (nzchar(Sys.getenv('CI')) & !ROpenCVLite::isOpenCVInstalled()) ROpenCVLite::installOpenCV(batch = TRUE)"
${R_HOME}/bin/Rscript -e "if (nzchar(Sys.getenv('CI')) & ROpenCVLite::isOpenCVInstalled() & unlist(strsplit(as.character(utils::packageVersion('ROpenCVLite')), '[.]'))[3] != gsub('[^0-9]', '', ROpenCVLite::opencvVersion())) ROpenCVLite::installOpenCV(batch = TRUE)"
${R_HOME}/bin/Rscript -e "if (!ROpenCVLite::isOpenCVInstalled()) { cat('------------------ OPENCV NOT FOUND --------------------\n') ; cat('\n') ; cat('OpenCV was not found in your library. Please install OpenCV as follows:') ; cat('\n') ; cat('\n') ; cat('ROpenCVLite::installOpenCV(batch = TRUE)\n') ; cat('\n') ; cat('--------------------------------------------------------\n') ; cat('\n') ; stop('OpenCV not found.') }"