Re: [R-pkg-devel] User defined RNG and code registration.

2023-09-23 Thread Ralf Stubner
On Sat, Sep 23, 2023 at 7:30 PM Ivan Krylov wrote: > You're right! Looking at the code, if R_useDynamicSymbols(dll, FALSE) > has been called for a DLL, the branch that calls dlsym() or > GetProcAddress() to find symbols from that library by their shared > object symbol names gets completely

Re: [R-pkg-devel] User defined RNG and code registration.

2023-09-23 Thread Ralf Stubner
On Sat, Sep 23, 2023 at 10:00 AM Duncan Murdoch wrote: > I don't know the answer here, but section 6.16 of WRE suggests that you > could explicitly make your functions visible even if they default to > invisible. Thanks Duncan. Unfortunately at least in my tests the visibility settings did not

Re: [R-pkg-devel] A simple question regarding examples

2023-09-23 Thread Ivan Krylov
В Thu, 21 Sep 2023 22:11:37 + Hanyu Song пишет: > Therefore, I am very surprised that the example below runs overtime, > since all it has to do is to run > reticulate::py_module_available('ctef'). If even this part is running > overtime, I am not quite sure how to deal with it. Can you show

Re: [R-pkg-devel] User defined RNG and code registration.

2023-09-23 Thread Ivan Krylov
В Sat, 23 Sep 2023 08:42:25 + Ralf Stubner пишет: > ?Random.user describes a way to hook a user- defined > RNG into R. However, it looks like these two things are not > compatible, i.e. `user_unif_rand` et al. are not found, if dynamic > symbols are not allowed. You're right! Looking at the

Re: [R-pkg-devel] User defined RNG and code registration.

2023-09-23 Thread Duncan Murdoch
On 23/09/2023 4:42 a.m., Ralf Stubner wrote: Hi everybody, Section 5.4 of WRE suggests to use `R_useDynamicSymbols(dll, FALSE);` when registering C/C++ routines in R packages, and Rcpp does so automatically. ?Random.user describes a way to hook a user- defined RNG into R. However, it looks like

Re: [R-pkg-devel] .OnLoad v .OnAttach

2023-09-23 Thread Duncan Murdoch
On 22/09/2023 8:35 p.m., Jonathan Godfrey wrote: Hello all, An issue has been raised for my BrailleR package. https://github.com/ajrgodfrey/BrailleR/issues/97#issuecomment-1732136521 I do make use of an .OnLoad() function for various tasks, including creation of a folder to put stuff in.

[R-pkg-devel] User defined RNG and code registration.

2023-09-23 Thread Ralf Stubner
Hi everybody, Section 5.4 of WRE suggests to use `R_useDynamicSymbols(dll, FALSE);` when registering C/C++ routines in R packages, and Rcpp does so automatically. ?Random.user describes a way to hook a user- defined RNG into R. However, it looks like these two things are not compatible, i.e.

Re: [R-pkg-devel] tinyfiledialogs - The bindings are ready, but I need help to make of package of it

2023-09-23 Thread tinyfiledialogs
Thanks to everybody for the help and input. I happens that Paul was already working on preparing a tinyfiledialogs package for R ! As he seems to know what is doing much more than I do, I will let him go ahead with the .Call version he is preparing and will provide assistance when needed.