Skip to content

Commit 3f16ebf

Browse files
authored
Altered the error message
It's more likely that people just didn't change their working directory
1 parent de1cfe8 commit 3f16ebf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

R/svm.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
check_location <- function(){
22
if(Sys.info()['sysname'] == 'Windows'){
33
if(!file.exists("../build/bin/Debug/thundersvm.dll")){
4-
stop("Please build the library first!")
4+
stop("Please build the library first (or check you called this while your workspace is set to the thundersvm/R/ directory)!")
55
}
66
dyn.load("../build/bin/Debug/thundersvm.dll")
77
} else if(Sys.info()['sysname'] == 'Linux'){
88
if(!file.exists("../build/lib/libthundersvm.so")){
9-
stop("Please build the library first!")
9+
stop("Please build the library first (or check you called this while your workspace is set to the thundersvm/R/ directory)!")
1010
}
1111
dyn.load("../build/lib/libthundersvm.so")
1212
} else if(Sys.info()['sysname'] == 'Darwin'){
1313
if(!file.exists("../build/lib/libthundersvm.dylib")){
14-
stop("Please build the library first!")
14+
stop("Please build the library first (or check you called this while your workspace is set to the thundersvm/R/ directory)!")
1515
}
1616
dyn.load("../build/lib/libthundersvm.dylib")
1717
} else{

0 commit comments

Comments
 (0)