Closed swaheera closed 3 years ago
You would need to be able to load all of the dependencies. It looks like in this case you are missing the DiceKriging package.
Hi Sam,
I loaded DiceKrigging as well - It still doesn't work. Do you think that it should technically be able to work?
Thanks
If you can't actually install and load the packages it probably won't work - when packages are loaded, dependent functions are also automatically loaded. These dependency trees can go pretty deep. Defining the function locally won't load these dependent functions / packages. Loading the packages also keeps track of which packages duplicate function names belong to. If loading the functions locally does not work, I would not be surprised, but R is pretty good at forcing janky environmental usage like this to work, so IDK.
Hello,
I am working on an older computer in which I can't install any new R packages, I only have an older version of R with some of the commonly used libraries in R. I am interested in using your library, but I can not install it on this older computer.
Question: Is it somehow possible to manually copy all the functions definitions from the github page and paste them into your R session, and then use this library?
For example:
I copy/pasted all the definitions from these links into R:
Then I opened R and loaded the libraries that I have access to:
Then, I tried to run the optimization code:
But I got the following error:
I know that this is not the intended way of using a library (i.e. manually copy/paste functions instead of installing the library from CRAN), but do you have any idea why this error might be appearing? In general, is it possible to use your library by only copy/pasting function definitions and not directly installing it?
Thanks!