Re: [R-pkg-devel] Error in inDL(x, as.logical(local), as.logical(now), ...) unable to load shared object

2022-01-03 Thread Tomas Kalibera
On 12/27/21 4:04 PM, Ezra Tucker wrote: Hi Tomas, Thanks again for all your great info. One last question- and maybe it's a stupid one. You mention the JAGS package-- I've been using xml2 as my kind-of template. Installing it on linux for example will fail unless you have the libxml2-dev

Re: [R-pkg-devel] Error in inDL(x, as.logical(local), as.logical(now), ...) unable to load shared object

2021-12-27 Thread Dirk Eddelbuettel
Ezra, [ A gentle plea: Can you please turn the encryption signing off when you reply? Thank you, it really confuses one of the email programs I use. ] What you state in passing is somewhere between misleading and just wrong, likely due to a misunderstanding. Quoting from your email: a

Re: [R-pkg-devel] Error in inDL(x, as.logical(local), as.logical(now), ...) unable to load shared object

2021-12-23 Thread Tomas Kalibera
On 12/23/21 4:52 PM, Ezra Tucker wrote: Hi Tomas and Dirk, Thanks for your suggestions! Between the two, got it working. I didn't know Windows didn't do rpath, I think that you're right that setting the PATH would have helped. I haven't seen that in an R package before, so I did what was in

Re: [R-pkg-devel] Error in inDL(x, as.logical(local), as.logical(now), ...) unable to load shared object

2021-12-23 Thread Ezra Tucker
Hi Tomas and Dirk, Thanks for your suggestions! Between the two, got it working. I didn't know Windows didn't do rpath, I think that you're right that setting the PATH would have helped. I haven't seen that in an R package before, so I did what was in the Rblpapi package, which was creating a

Re: [R-pkg-devel] Error in inDL(x, as.logical(local), as.logical(now), ...) unable to load shared object

2021-12-23 Thread Dirk Eddelbuettel
On 23 December 2021 at 11:07, Tomas Kalibera wrote: | You can have a look at CRAN package Rblpapi which is using an external DLL. Yes with one big caveat: You have to make sure the library follows what is the "hour-glass pattern": it needs to have an internal (the "narrow" part) C library

Re: [R-pkg-devel] Error in inDL(x, as.logical(local), as.logical(now), ...) unable to load shared object

2021-12-23 Thread Tomas Kalibera
On 12/21/21 5:40 PM, Ezra Tucker wrote: Hi R package developers, I'm developing an R package that wraps NREL's SSC library (https://sam.nrel.gov/), which involves including one header file and linking to one dll. Thus far it is only tested in linux (works just fine there) but I am having

[R-pkg-devel] Error in inDL(x, as.logical(local), as.logical(now), ...) unable to load shared object

2021-12-23 Thread Ezra Tucker
Hi R package developers, I'm developing an R package that wraps NREL's SSC library (https://sam.nrel.gov/), which involves including one header file and linking to one dll. Thus far it is only tested in linux (works just fine there) but I am having trouble building/installing on Windows. The