Re: [R-pkg-devel] Functions requiring packages listed on Suggests

2025-05-08 Thread Michael Chirico
Just don't run those examples on machines lacking the Suggests packages. With roxygen2 it's as easy as @examplesIf requireNamespace(p, quietly=TRUE). On Thu, May 8, 2025, 8:19 AM Juan Antonio Garcia Martin < ja.gar...@cnb.csic.es> wrote: > Dear mantainers, > > I have a question, since one of my

Re: [R-pkg-devel] Run Examples Not Found

2025-05-07 Thread Michael Chirico
Hi Mat, glancing at what I believe to be your package sources [1] You have non-R exposition in your \examples{...}. Examples are code -- you should be able to run them like any other code. Moreover, they should be self-contained -- expecting the user to create 'oildata' themselves won't work. Wh

Re: [R-pkg-devel] New API in R-devel & minimum version of R

2025-04-04 Thread Michael Chirico
data.table is doing the same in a number of places, Ivan even went so far as to pin down a specific SVN commit for those as well: #if R_VERSION < R_Version(4, 5, 0) || R_SVN_REVISION < 86702 # define isDataFrame(x) isFrame(x) // #6180 #endif https://github.com/Rdatatable/data.table/blob/09090480

Re: [R-pkg-devel] AlgDesign C Issue

2025-03-31 Thread Michael Chirico
Do you want to use instead of your macros? https://pubs.opengroup.org/onlinepubs/009695399/basedefs/stdbool.h.html On Mon, Mar 31, 2025, 12:37 AM Jerome Braun wrote: > Hi! > > I'm currently the maintainer of AlgDesign, though my C skill is clearly a > little too low for the task. > > It has

Re: [R-pkg-devel] How and where do I document sysdata.rda

2025-03-20 Thread Michael Chirico
Here are about 60 CRAN packages discussing sysdata in their Rd files: https://github.com/search?q=org%3Acran+path%3A.Rd+%2F%28%5B%5E%7B+%5D%7C%5B%5Ed%5D%5C%7B%29%5Cs*sysdata%2F&type=code You might take a cue from them. Indeed \keyword{internal} is common there. On Thu, Mar 20, 2025 at 9:57 AM Ke

Re: [R-pkg-devel] Package with JS dependency

2025-02-22 Thread Michael Chirico
nd > this, for example: > > https://github.com/cran/cookies/blob/eb72bda92734d7537061e008191c2041dbe49dff/inst/js/js.cookie.min.js > > On Fri, 21 Feb 2025 09:06 AM Michael Chirico > wrote: > > > You might have a look at those. To Duncan's point, note there are a

Re: [R-pkg-devel] Package with JS dependency

2025-02-21 Thread Michael Chirico
Here are 2,800 JavaScript files in CRAN packages: https://github.com/search?q=org%3Acran+path%3Amin.js+-path%3ALICENSE.txt&type=code You might have a look at those. To Duncan's point, note there are also 0 min.js files: https://github.com/search?q=org%3Acran+path%3Amin.js+-path%3ALICENSE.txt&typ

Re: [R-pkg-devel] Failed: Future File Timestamp Check

2025-02-07 Thread Michael Chirico
Actually, it looks like R CMD check has _intended_ to just skip in the case the website is misbehaving: https://github.com/r-devel/r-svn/blob/3578a3f858136a8abcd2f708f38a8dff6225ec42/src/library/tools/R/check.R#L549-L552 My guess is this test should be improved, currently we get (logical) NA if t

Re: [R-pkg-devel] 'library' or 'require' call not declared

2025-02-06 Thread Michael Chirico
You haven't shared enough info to help well, but it looks like you use package MASS in your demo/ directory without a corresponding entry in your DESCRIPTION file. Add MASS as Suggests or Imports should be enough. If you point to where your code is on GitHub or another public-facing repository it

[R-pkg-devel] Removing import(methods) stops exporting S4 "meta name"

2024-03-14 Thread Michael Chirico
the right thing to do? I don't see any other CRAN packages with a similar directive in its NAMESPACE. Michael Chirico __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

[R-pkg-devel] gettext on Solaris

2021-07-01 Thread Michael Chirico
My new submission potools failed on Solaris: https://www.r-project.org/nosvn/R.check/r-patched-solaris-x86/potools-00check.html Likely reason is that one or more of the SystemRequirements are missing (I put gettext as a catchall in the DESCRIPTION but more specifically it needs msgfmt, msgmerge,

[R-pkg-devel] Getting started with memory debugging

2019-01-13 Thread Michael Chirico
d by how RD binary is built but I didn't notice any compilation output from R CMD build . Any help on getting started here would be appreciated :) Michael Chirico PS the source can be found at https://github.com/MichaelChirico/geohashTools [[alternative HTML version deleted]] _