Skip to content
Prev 11090 / 12125 Next

[R-pkg-devel] conditional import of a package?

Hi. Thanks for the additional advice. It now works!

I only had to move the assignment of  nloptr.methods outside the if(.) block in the first chunk of code, otherwise the variable was undefined for the second block. This issue only showed up when I tried the newly created package on a machine without nloptr installed.

Best regards, and thanks again for your kind help.

Adelchi