You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I met the problem, too. I also test the svm_iris<- Rgtsvm::svm(Species ~ ., data=iris), getting the error:
Error in if (class(x) == "data.frame") x <- as.matrix(x) :
the condition has length > 1
Warning message:
In !sparse && (class(x) %in% c("matrix", "data.frame")) :
'length(x) = 2 > 1' in coercion to 'logical(1)'
Thanks a lot!
I also met the same problem when using dReg on R > v4.0.
This is due to a difference in the way class(x) is output for matrices in R > v4.0, so that class(x) returns a vector of length 2: "matrix" "array". This leads to the error "the condition has length > 1"
dReg runs without this error on R 3.6.3 or earlier, so the simplest solution is to create a Conda environment with R 3.6.3 pinned and install all other dependencies there
Running the test program with R 4.2.2 gives the error in the title and attached below.
error.txt
The text was updated successfully, but these errors were encountered: