Re: [R-pkg-devel] Best practices for built version checking in packages LinkingTo others?

2025-01-22 Thread Pavel Krivitsky via R-package-devel
es this API for saving and checking ABI versions be useful to anyone? Best, Pavel On Sun, 2025-01-19 at 05:31 +, Pavel Krivitsky via R-package-devel wrote: > Thanks, Ivan! Replies below. > > On Fri, 2025-01-17 at 16:50

Re: [R-pkg-devel] Best practices for built version checking in packages LinkingTo others?

2025-01-18 Thread Pavel Krivitsky via R-package-devel
Thanks, Ivan! Replies below. On Fri, 2025-01-17 at 16:50 +0300, Ivan Krylov wrote: > В Fri, 17 Jan 2025 10:21:27 + > Pavel Krivitsky via R-package-devel > пишет: > > >    1. What is the best way to save this information? I have a > >   rudimentary implementatio

[R-pkg-devel] Best practices for built version checking in packages LinkingTo others?

2025-01-17 Thread Pavel Krivitsky via R-package-devel
Dear All, I maintain a package ('ergm') that exports a C API via /inst/include/ that includes header files with data structures, macros, and inline functions, as well as a number of functions exported in a stubs file (that use R_FindSymbol() and/or R_GetCCallable() to locate the functions in 'ergm

Re: [R-pkg-devel] Three-argument S3method declaration does not seem to affect dispatching from inside the package.

2019-05-19 Thread Pavel Krivitsky
take precedence within a namespace. The only situation in which it would change R's behaviour would be when a package/namespace contains a function foo.bar() AND a NAMESPACE containing S3method(foo,bar,not.foo.bar) AND calls foo() on objects of type bar from inside the package. It is extreme

Re: [R-pkg-devel] Three-argument S3method declaration does not seem to affect dispatching from inside the package.

2019-05-18 Thread Pavel Krivitsky
uence above contradicts the current implementation (except for swapping 1 and 2)? As far as I can tell, it's just a more concrete description of what's in the documentation. Best Regards, Pavel -- Pavel Krivitsky Lecturer in Statisti

Re: [R-pkg-devel] Three-argument S3method declaration does not seem to affect dispatching from inside the package.

2019-05-14 Thread Pavel Krivitsky
4. S3method() in other loaded packages' NAMESPACEs. 5. Appropriately named functions exported by other loaded packages' NAMESPACEs. For a call from outside a package, the precedence is the same, but 1 and 2 are not relevant. As far as I can tell, this is the current behaviour e

[R-pkg-devel] Three-argument S3method declaration does not seem to affect dispatching from inside the package.

2019-05-13 Thread Pavel Krivitsky
oc/manuals/r-release/R-lang.html#Method-dispatching ), but it seems to me that if S3method() is allowed to give the name of the method to be used, then it should should override the name-based dispatching both inside and outside the package. Any thoughts?

[R-pkg-devel] Seamless way for a CRAN-bound package to depend on a Bioconductor package?

2017-07-28 Thread Pavel Krivitsky
Pavel -- Pavel Krivitsky Lecturer in Statistics National Institute of Applied Statistics Research Australia (NIASRA) School of Mathematics and Applied Statistics | Building 39C Room 154 University of Wollongong NSW 2522 Australia T +61 2 4221 3713 Web (NIASRA): http://niasra.

Re: [R-pkg-devel] R CMD check warning about .inc files.

2017-03-16 Thread Pavel Krivitsky
either case.) Pavel > > Gabor > > On Thu, Mar 16, 2017 at 9:11 PM, Pavel Krivitsky > wrote: > > Dear All, > > > > Since some C header files in a package I maintain have identical > > macro > > definitions (which have a different meaning

[R-pkg-devel] R CMD check warning about .inc files.

2017-03-16 Thread Pavel Krivitsky
se these are not meant to be included as header files by any C code. Thank you in advance, Pavel -- Pavel Krivitsky Lecturer in Statistics National Institute of Applied Statistics Research Australia (NIASRA) Scho