I think you can. Look at function gep_load_dll
from gepR.R
#' Load gepR.dll
#' @param dll_file the path and name of the dll file to be loaded.
gep_load_dll <- function(dll_file = "gepR.dll"){
dyn.load(dll_file)
}
I think you just have to change the variable for this function such that it is the path to the dll file. To me it seems that the package does not care where you put it.
So just put the file into the directory you want, call this function with the path to the file and you should be fine. Particularely, when we also consider the example from the demo, where we find this code
gep_load_dll() # Load the gepR.dll from the default location
gepmod <- gep_train(y = train_y, x = train_x, maxiter = 1000, goal=0.95, nthreads = 10)
The comment seems to suggest that you can put it anywhere you like as long as you overwrite the default location.
Please note that I have not tried it out myself because I'm not a windows user. If it works, please let us know.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…