Skip to content

Commit

Permalink
Add platform check.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjmgarnier committed Aug 1, 2024
1 parent 401e0e9 commit 7be5035
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ opencvConfig <- function(output = "libs", arch = NULL) {


.findRtools <- function() {
if (.Platform$OS.type != "windows") {
stop("Rtools is Windows only.")
}

if (version$major < 4) {
stop("ROpenCVLite requires a R version > 4.0.")
}
Expand Down

0 comments on commit 7be5035

Please sign in to comment.