Re: [R-pkg-devel] MSRV on Fedora

2024-07-23 Thread Duncan Murdoch
done this in your submission comments. I don't think a Fedora failure will cause a submission to be automatically rejected, but the CRAN reviewers may want to know if you have dealt with the error, and you should explain that this is what you've done. Duncan Murdoch On 2024-07-23 12:19 p.m

Re: [R-pkg-devel] How to get arbitrary precise inputs from R for an Rcpp package?

2024-07-19 Thread Duncan Murdoch
r-source/blob/b64422334a8269535718efd9a1f969c94b103056/src/main/gram.y#L2577-L2705 I don't know how much of that you want to replicate, but I suppose handling the weird cases (e.g. 0x1p1) the way R does will make it easier for your users. Duncan Murdoch On 2024-07-18 4:29 p.m., Khue Tran wrote: Hi,

Re: [R-pkg-devel] How to get arbitrary precise inputs from R for an Rcpp package?

2024-07-19 Thread Duncan Murdoch
he mathematical fraction 1/10 It seems like mpfr("0.1", 100) works pretty well. I'd assume it does the parsing, rather than parse 0.1 to the closest double, and convert that. Duncan Murdoch ## if you really want that, I'd also recommend truly exact fractions require(gmp) as.bigq

[R-pkg-devel] Use of ‘R_InputHandlers’

2024-07-10 Thread Duncan Murdoch
s-std.c, but I'm not sure which comments. rgl references it from this code: https://github.com/dmurdoch/rgl/blob/fbedc326e291c3ec28a9ccac7d030f04b05edfa3/src/x11lib.cpp#L53-L72 Can anyone tell me whether I can fix this? Duncan Murdoch __ R-package-dev

Re: [R-pkg-devel] Is R-Forge dead?

2024-07-01 Thread Duncan Murdoch
a contribution to one of them, they are less likely to want to do it. Duncan Murdoch On 2024-07-01 6:04 p.m., Kevin R. Coombes wrote: Hi, I have been maintaining packages in R-Forge for many tears. Last week I sent an email to r-fo...@r-project.org to report problems with the build process. It appears

Re: [R-pkg-devel] Help needed with CRAN check error under MacOS and old-rel

2024-06-30 Thread Duncan Murdoch
nally, evaluate unconditionally" bug. Duncan Murdoch __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [Rd] \>

2024-06-29 Thread Duncan Murdoch
single step through a pipe (as far as I know), but with that modification, you can see what you've got at any point. Duncan Murdoch On 2024-06-29 6:57 p.m., Spencer Graves wrote: Hi, Duncan: On 6/29/24 17:24, Duncan Murdoch wrote:   Yes. I'm not yet facile with "|>", but

[Rd] \>

2024-06-29 Thread Duncan Murdoch
t; f(a = 1) |> g(b = 2) is just g(f(x, a = 1), b = 2) This isn't quite true of the magrittr pipe, but it is exactly true of the base pipe. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] rbind() on zero row matrices is inconsistent

2024-06-26 Thread Duncan Murdoch
nd to it, but the 0xn matrix is unchanged for n > 0. Clearly from the help this is intentional, but is it desirable? Wouldn't it make more sense for NULL to be ignored by rbind() and cbind()? Duncan Murdoch __ R-devel@r-project.org mailing

Re: [Rd] SET_TYPEOF no longer allowed, how should I call R from within C?

2024-06-25 Thread Duncan Murdoch
better, the one that comes with the development version of R. Duncan Murdoch As a more comprehensive example of constructing an R call in C code and evaluating, consider the following fragment of printAttributes in src/main/print.c. /* Need to construct a call to print(CAR

Re: [R-pkg-devel] Windows binary package not at mirrors

2024-06-23 Thread Duncan Murdoch
which needs compilation? Updating RStudio wouldn't help, that needs an R update, but it seems like a possibly useful suggestion. What would be your suggested wording? Should it depend on R trying to figure out if the current version is old? Duncan Murdoch

Re: [R-pkg-devel] Windows binary package not at mirrors

2024-06-23 Thread Duncan Murdoch
On 2024-06-23 5:44 a.m., Agner Fog wrote: On 23/06/2024 09.56, Duncan Murdoch wrote: CRAN only builds Windows binaries for the devel version, the current release, and the previous release, so nothing older than 4.3.0 will get it. Thank you. Updating R helped. BTW, I don't think we need so

Re: [R-pkg-devel] Windows binary package not at mirrors

2024-06-23 Thread Duncan Murdoch
On 2024-06-23 2:18 a.m., Agner Fog wrote: On 23/06/2024 00.15, Duncan Murdoch wrote: As far as I know, CRAN doesn't push changes to the mirrors, the mirrors pull changes from CRAN.  So if you are seeing that message, the problem is likely with the mirror you're using.  Which mirror

Re: [R-pkg-devel] Windows binary package not at mirrors

2024-06-22 Thread Duncan Murdoch
you're using. Which mirror is that? Duncan Murdoch __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] Resubmitting an archived package

2024-06-11 Thread Duncan Murdoch
definitely mention each of the issues that led to archiving in the note you submit with your package. Duncan Murdoch On 2024-06-11 6:27 a.m., Hervé Perdry wrote: Hello, I 'm new here! I'm the maintainer of a handful of packages and should have subscribed long ago. Here's my problem. I didn't

Re: [R-pkg-devel] No email with confirmation link on resubmission of package

2024-06-05 Thread Duncan Murdoch
to resubmit it in some different way? No, if you didn't get the confirmation link, then you haven't submitted it. You can use `foghorn::cran_incoming()` to see what's in the CRAN incoming queue. Duncan Murdoch __ R-package-devel@r-project.

Re: [R-pkg-devel] Including "Rmath.h" in C code for an R package

2024-06-03 Thread Duncan Murdoch
On 2024-06-02 7:39 p.m., Iris Simmons wrote: To avoid the remapping of beta to Rf_beta, you should define R_NO_REMAP_RMATH before you include Rmath: #define R_NO_REMAP_RMATH #include ... and then remember to include the "Rf_" prefix on the routines that you do want to use. Dunc

Re: [R-pkg-devel] Help with detritus on temporary directory note

2024-05-30 Thread Duncan Murdoch
was detected at the end? This problem has two sides. The side that R CMD check is giving you NOTEs about is that _examples and tests_ are requried to keep the global state of the system intact. Only some parts of the global state: examples can create variables in globalenv(). Duncan Murdoch

Re: [R-pkg-devel] different build tools

2024-05-28 Thread Duncan Murdoch
of their forums. By the way, RStudio has project and global options that affect its builds; the default uses devtools, but I generally deselect that, and go straight to 1. Duncan Murdoch __ R-package-devel@r-project.org mailing list https://stat.ethz.ch

Re: [Rd] Segfault when parsing UTF-8 text with srcrefs

2024-05-28 Thread Duncan Murdoch
a0 run_REngineRmainloop + 260 14 R 0x102d1a64c -[REngine runREPL] + 124 15 R 0x102d0dd90 main + 588 16 dyld 0x188fae0e0 start + 2360 Duncan Murdoch _

Re: [Rd] Keep class attribute when applying c() to hexmodes

2024-05-27 Thread Duncan Murdoch
hould submit a patch containing it to bugs.r-project.org. Based on c.Date, here's a first attempt: c.hexmode <- function(...) as.hexmode(c(unlist(lapply(list(...), function(e) unclass(as.hexmode(e)) If you want this to be incorporated into R, you should test

Re: [R-pkg-devel] Compile issues on r-devel-linux-x86_64-debian-clang with OpenMP

2024-05-23 Thread Duncan Murdoch
On 2024-05-23 11:49 a.m., Dirk Eddelbuettel wrote: On 22 May 2024 at 14:03, Duncan Murdoch wrote: | On 2024-05-22 10:18 a.m., Dirk Eddelbuettel wrote: | > | > On 22 May 2024 at 13:54, Nixon, Michelle Pistner wrote: | > | Thank you both for your responses and help! Kurt-- your mess

Re: [R-pkg-devel] Compile issues on r-devel-linux-x86_64-debian-clang with OpenMP

2024-05-22 Thread Duncan Murdoch
On 2024-05-22 10:18 a.m., Dirk Eddelbuettel wrote: On 22 May 2024 at 13:54, Nixon, Michelle Pistner wrote: | Thank you both for your responses and help! Kurt-- your message makes a lot of | sense. I'll try to debug soon and will reach out if I have more questions. Interesting. Kurt, is there

[Rd] config.site settings for M3 Mac typo in manual?

2024-05-20 Thread Duncan Murdoch
I've just upgraded to an M3 Mac laptop, and I'm working through getting the right configure settings to build R. The Installation and Administration manual says to have this in config.site: FFLAGS="-g -O2 -mmacos-version-min=11.0" FCFLAGS="-g -O2 -mmacos-version-min=11.0" but those give an

Re: [R-pkg-devel] [External] Re: Assistance Needed to Resolve CRAN Submission Note

2024-05-18 Thread Duncan Murdoch
I don't think that will ever happen. It only happens when a user tries an "--as-cran" check, but doesn't have a current version of tidy installed. CRAN does have the up-to-date versions installed, so they won't see this. Duncan Murdoch On 2024-05-18 5:10 p.m., Richard M. Heibe

Re: [R-pkg-devel] CRAN packages dependency on bioconductor packages

2024-05-16 Thread Duncan Murdoch
e required to be a hard dependency, but that seems too strong: most package users don't need to rebuild vignettes. Duncan Murdoch The error from the additional "noSuggests" check (<https://www.stats.ox.ac.uk/pub/bdr/noSuggests/README.txt>) shows it cannot be rebuild if BiocStyle is

Re: [Rd] FR: Customize background colour of row and column headers for the View output

2024-05-15 Thread Duncan Murdoch
A criticism of your suggestion is that it is not backwards compatible. Does that matter? I don't know, but probably not. The X11 version of the viewer does what you suggest. Duncan Murdoch On 2024-05-15 2:20 a.m., Iago Giné Vázquez wrote: About the decisions: Actually, the same way

Re: [Rd] FR: Customize background colour of row and column headers for the View output

2024-05-14 Thread Duncan Murdoch
), but I could help with the design. Duncan Murdoch On 2024-05-14 5:25 a.m., Iago Giné Vázquez wrote: Thanks again Duncan and Ivan, I forward then the email to R-devel. Summarizing, the dataedit options (in RGui preferences or RConsole) to colouring the View output do not have effect

Re: [R-pkg-devel] Trouble with dependencies on phyloseq and microViz

2024-05-04 Thread Duncan Murdoch
esn't matter that it's not on CRAN. Have you tried submitting your package to CRAN? If so, could you show us the error you received? Duncan Murdoch __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] Error handling in C code

2024-05-03 Thread Duncan Murdoch
uot;, etc. Perhaps you turned off the aliasing? Duncan Murdoch On 03/05/2024 11:17 a.m., Jarrod Hadfield wrote: Hi, I have an R library with C code in it. It has failed the CRAN checks for Debian. The problem is with the error function being undefined. Section 6.2 of the Writing R e

Re: [Rd] read.csv

2024-04-16 Thread Duncan Murdoch
put as Jing Hua: Input filename.csv: Gene,SNP,prot,log10p YWHAE,13:62129097_C_T,1433E,7.35 YWHAE,4:72617557_T_TA,1433E,7.73 Output: > read.csv("filename.csv") Gene SNP prot log10p 1 YWHAE 13:62129097_C_T 1433 7.35 2 YWHAE 4:72617557_T_TA 1433 7.73 Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [R-pkg-devel] error in windows R-devel builder, but not anywhere else

2024-04-13 Thread Duncan Murdoch
only sparingly. I don't know why you didn't see this on the other platforms; maybe they just haven't been rebuilt recently. Duncan Murdoch On 13/04/2024 5:35 a.m., Tony Wilkes wrote: Hi everyone, I am updating my R package (tinycodet), and I have checked my R-package in all operating systems

Re: [Rd] Repeated library() of one package with different include.only= entries

2024-04-11 Thread Duncan Murdoch
sing around with the user's search list, which may have been intentionally set to include only one of those. So I'd suggest changing the docs to say "[library and require] check and update the list of currently attached packages and do not reload a namespace which is already loaded. If a package is already attached, no change will be made." Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [R-pkg-devel] Need help with "Lost braces" in R under development checks

2024-04-07 Thread Duncan Murdoch
to \doi, but it only takes one. I would have thought that would be fine, but apparently not. So add a space after "\doi{10.2307/3071950}" and/or remove the braces around "{Relevance of community structure in assessing indeterminacy of ecological predictions}". Dunc

Re: [Rd] Bug in out-of-bounds assignment of list object to expression() vector

2024-04-05 Thread Duncan Murdoch
Yes, definitely looks like a bug. Are you able to submit it to bugs.r-project.org? Duncan Murdoch On 05/04/2024 8:15 a.m., June Choe wrote: There seems to be a bug in out-of-bounds assignment of list objects to an expression() vector. Tested on release and devel. (Many thanks to folks over

Re: [Rd] RSS Feed of NEWS needs a hand

2024-04-02 Thread Duncan Murdoch
On 02/04/2024 8:50 a.m., Dirk Eddelbuettel wrote: On 2 April 2024 at 07:37, Dirk Eddelbuettel wrote: | | On 2 April 2024 at 08:21, Duncan Murdoch wrote: | | I have just added R-4-4-branch to the feeds. I think I've also fixed | | the \I issue, so today's news includes a long list of old

Re: [Rd] RSS Feed of NEWS needs a hand

2024-04-02 Thread Duncan Murdoch
I have just added R-4-4-branch to the feeds. I think I've also fixed the \I issue, so today's news includes a long list of old changes. Duncan Murdoch On 16/03/2024 8:47 a.m., Duncan Murdoch wrote: I have now put the files online at https://github.com/dmurdoch/diffnews . It seemed like too

Re: [Rd] declare and validate options

2024-03-29 Thread Duncan Murdoch
operator: it was in magrittr (and I think another package, but I forget the name) first, was widely adopted, then a simpler version was brought into base R. Duncan Murdoch Le ven. 29 mars 2024 à 16:25, Duncan Murdoch <mailto:murdoch.dun...@gmail.com>> a écrit : On 29/03/2024

Re: [Rd] declare and validate options

2024-03-29 Thread Duncan Murdoch
could be made simple enough and bulletproof and were widely adopted, maybe they'd be copied into one of the base packages, but really the only need for that would be to support validation on setting, rather than validation on retrieval. Duncan Murdoch

Re: [Rd] RSS Feed of NEWS needs a hand

2024-03-16 Thread Duncan Murdoch
I have now put the files online at https://github.com/dmurdoch/diffnews . It seemed like too much trouble to include the SVN history, so this is just a copy of the current version of the files. Duncan Murdoch On 15/03/2024 12:04 p.m., Lluís Revilla wrote: Hi! Thanks for this service

Re: [Rd] RSS Feed of NEWS needs a hand

2024-03-15 Thread Duncan Murdoch
). Duncan Murdoch On 15/03/2024 12:04 p.m., Lluís Revilla wrote: Hi! Thanks for this service! It is very helpful to know what is being developed. I distribute the content to other venues and I noticed some times that the updates are duplicated. For example, the sentence "‘is.R()’ is depre

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

2024-03-14 Thread Duncan Murdoch
.frame -> [ -> [.data.table -> [.data.frame Execution halted I'm pretty sure that import should not be made, but I don't know the intention of this example, or what the correct fix would be. Duncan Murdoch On 14/03/2024 2:34 p.m., Michael Chirico wrote: In an effort to streamline our

Re: [R-pkg-devel] Submission after archived version

2024-03-12 Thread Duncan Murdoch
positive, but what it says is that your checks created a file called metabolomics_data.csv some place where it shouldn't have created it. You should only be writing in the temp directory, and you should clean up afterwards. Duncan Murdoch __

Re: [R-pkg-devel] [EXTERN] Re: [EXTERN] Re: [EXTERN] Re: @doctype is deprecated. need help for r package documentation

2024-03-12 Thread Duncan Murdoch
to open in the default browser on MacOS. See ?browseURL for details of how to specify other browsers. Duncan Murdoch __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] R CHECK warning about new S3 generic/method consistency

2024-03-11 Thread Duncan Murdoch
y value. The usual way to handle this is to include both x and y in all methods, but document some of them to say that y is ignored. Duncan Murdoch __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [Rd] Vignettes with long compute time

2024-03-11 Thread Duncan Murdoch
, but you could always write the code something like this: if (Sys.getenv("RUN_SLOW_CHUNKS", 0)) { ... the slow code goes here ... } else cat("This chunk takes several hours to compute. If you want to run it, set the environment variable RUN_SLOW_CHUNKS to

Re: [Rd] R6 "classname" and generator name

2024-03-11 Thread Duncan Murdoch
don't have any idea if this is intentional or not. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [R-pkg-devel] [External] [External] RcmdrPlugin.HH_1.1-48.tar.gz

2024-03-07 Thread Duncan Murdoch
On 07/03/2024 4:16 a.m., Ivan Krylov wrote: On Wed, 6 Mar 2024 13:46:55 -0500 Duncan Murdoch wrote: is this just a more or less harmless error, thinking that the dot needs escaping I think it's this one. You are absolutely right that the dot doesn't need escaping in either TRE (which

Re: [R-pkg-devel] [External] [External] RcmdrPlugin.HH_1.1-48.tar.gz

2024-03-06 Thread Duncan Murdoch
and about that suggestion (which is taken from WRE, I'm not blaming Rich for it): why include the backslash in the negated character class? Does R ever create variables starting with a backslash, or is this just a more or less harmless error, thinking that the dot needs escaping? Duncan Murdo

Re: [R-pkg-devel] RcmdrPlugin.HH_1.1-48.tar.gz

2024-03-05 Thread Duncan Murdoch
, and it matches that variable. Duncan Murdoch __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] Suggesting an archived package in the DESCRIPTION file

2024-03-05 Thread Duncan Murdoch
On 05/03/2024 2:26 p.m., Dirk Eddelbuettel wrote: On 5 March 2024 at 13:28, Duncan Murdoch wrote: | What I'm seeing is that the tags are ignored, and it is distributing the | HEAD of the main branch. I don't think most users should be using that | version: in my packages it won't have had

Re: [R-pkg-devel] Suggesting an archived package in the DESCRIPTION file

2024-03-05 Thread Duncan Murdoch
On 05/03/2024 1:04 p.m., Dirk Eddelbuettel wrote: On 5 March 2024 at 11:56, Duncan Murdoch wrote: | I have mixed feelings about r-universe. On the one hand, it is really | nicely put together, and it offers the service described above. On the | other, it's probably a bad idea to follow its

Re: [R-pkg-devel] Suggesting an archived package in the DESCRIPTION file

2024-03-05 Thread Duncan Murdoch
hor doesn't know it happened? I found out about "my" site dmurdoch.r-universe.dev today, but it seems to have existed for quite a while. Duncan Murdoch On Tue, Mar 5, 2024 at 11:56 AM Duncan Murdoch <mailto:murdoch.dun...@gmail.com>> wrote: On 05/03/2024 8:02 a.m., Dirk Edd

Re: [R-pkg-devel] Suggesting an archived package in the DESCRIPTION file

2024-03-05 Thread Duncan Murdoch
On 05/03/2024 8:02 a.m., Dirk Eddelbuettel wrote: On 5 March 2024 at 06:25, Duncan Murdoch wrote: | You could make a compatible version of `survivalmodels` available on a | non-CRAN website, and refer to that website in the | Additional_repositories field of DESCRIPTION. Every r-universe sub

Re: [R-pkg-devel] Suggesting an archived package in the DESCRIPTION file

2024-03-05 Thread Duncan Murdoch
ed package. Duncan Murdoch __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [Rd] [External] Re: capture "->"

2024-03-04 Thread Duncan Murdoch
TRUE x2 9 1 12 1 13 9 10exprFALSE The expressions produced are the same, but the parse data is different. Duncan Murdoch On 04/03/2024 11:51 a.m., Bill Dunlap wrote: Maybe someone has already suggested this, but if your functions accepted strings you could use sub o

Re: [Rd] capture "->"

2024-03-02 Thread Duncan Murdoch
operands reversed when it sees that token. Duncan Murdoch On 02/03/2024 6:06 a.m., Adrian Dușa wrote: That would have been an elegant solution, but it doesn't seem to work: `->` <- `+` 1 -> 3 # expecting 4 Error in 3 <- 1 : invalid (do_set) left-hand side to assignment It is possi

Re: [Rd] capture "->"

2024-03-01 Thread Duncan Murdoch
On 01/03/2024 8:51 a.m., Dmitri Popavenko wrote: On Fri, Mar 1, 2024 at 1:00 PM Duncan Murdoch <mailto:murdoch.dun...@gmail.com>> wrote: ... I was thinking more of you doing something like   parse(text = "A -> B", keep.source = TRUE) I forge

Re: [Rd] capture "->"

2024-03-01 Thread Duncan Murdoch
On 01/03/2024 5:25 a.m., Dmitri Popavenko wrote: Dear Duncan, On Fri, Mar 1, 2024 at 11:30 AM Duncan Murdoch <mailto:murdoch.dun...@gmail.com>> wrote: ... If you parse it with srcrefs, you could look at the source.  The parser doesn't record whether it was A

Re: [Rd] capture "->"

2024-03-01 Thread Duncan Murdoch
I wonder if there is any possibility whatsoever to signal the use of -> instead of <- If you parse it with srcrefs, you could look at the source. The parser doesn't record whether it was A -> B or B <- A anywhere else. Duncan Murdoch __

Re: [R-pkg-devel] CRAN checks for release of a package with new vignette engine

2024-02-26 Thread Duncan Murdoch
tools were not available. Duncan Murdoch On 26/02/2024 10:34 a.m., Christophe Dervieux wrote: Hi, I am trying to release a new version of the quarto R package. This new version is adding support for a new vignette engine that will use quarto CLI (https://quarto.org) when available. The vignettes

Re: [R-pkg-devel] CRAN Package Check Note: Warning: trimming empty

2024-02-24 Thread Duncan Murdoch
anyone provide insights or suggestions on how to resolve this warning? What is in that file at those locations? Duncan Murdoch __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] Package required but not available: ‘arrow’

2024-02-22 Thread Duncan Murdoch
. Another choice would be to work with the arrow developers to get it to install on the systems where it fails now, but it's a big package, so that would likely be a lot harder. Duncan Murdoch On 21/02/2024 5:15 p.m., Park, Sung Jae wrote: Hi, I’m writing to seek assistance regarding an issue we’re

Re: [Rd] Bug in comparison of language objects?

2024-02-20 Thread Duncan Murdoch
On 20/02/2024 8:03 a.m., Duncan Murdoch wrote: I noticed the following odd behaviour today: exprs <- expression( mean(a), mean(b), { a }, { b } ) exprs[[1]] == exprs[[2]] #> [1] FALSE exprs[[3]] == exprs[[4]] #> [1] TRUE Does it make sense to anyone that the

[Rd] Bug in comparison of language objects?

2024-02-20 Thread Duncan Murdoch
contained in braces doesn't? Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] Suggestion: simplify trace() interface

2024-02-19 Thread Duncan Murdoch
*only* way to limit tracing to some copies of the function, and if "where" is omitted, trace() should attempt to modify all copies? Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [R-pkg-devel] Conversion failure in 'mbcsToSbcs'

2024-02-19 Thread Duncan Murdoch
Removing (or moving to inst) the unrecognized file should be sufficient. Duncan Murdoch On 19/02/2024 7:27 a.m., Package Maintainer wrote: Hello all: Thank you both for your advice. I attempted to upload the latest version to CRAN, and again received the notification that the package did

Re: [R-pkg-devel] Conversion failure in 'mbcsToSbcs'

2024-02-17 Thread Duncan Murdoch
using knitr for Rnw documents instead of Sweave. It will require a few changes, but in general it's more flexible and works a bit better. Duncan Murdoch On 17/02/2024 7:51 a.m., Package Maintainer wrote: Dear Ivan: Thank you for your help again. Thanks for your suggestion to use cai

Re: [Rd] round.Date and trunc.Date not working / implemented

2024-02-09 Thread Duncan Murdoch
On 08/02/2024 7:58 p.m., Jiří Moravec wrote: > This is a workaround, and could be the basis for a round.Date improvement: >   date <- Sys.Date() >   as.Date(round(as.POSIXct(date), "years")) >   as.Date(round(as.POSIXct(Sys.Date() + 180), "years"))

Re: [Rd] round.Date and trunc.Date not working / implemented

2024-02-08 Thread Duncan Murdoch
This is a workaround, and could be the basis for a round.Date improvement: date <- Sys.Date() as.Date(round(as.POSIXct(date), "years")) as.Date(round(as.POSIXct(Sys.Date() + 180), "years")) Duncan Murdoch On 08/02/2024 12:23 p.m., Henrik Bengtsson wrote: Techni

Re: [R-pkg-devel] Package failing reverse dependency checks

2024-02-08 Thread Duncan Murdoch
ubmission could have happened. Duncan Murdoch If not, then can anyone suggest the best way to debug a revdep check on as close a setup to the CRAN machines as possible? Cheers, David Git tag for the last CRAN submission: https://github.com/hughjonesd/huxtable/releases/tag/v5.5.4-rc3 Info from the C

Re: [Rd] [EXTERNAL] Re: NOTE: multiple local function definitions for ?fun? with different formal arguments

2024-02-07 Thread Duncan Murdoch
nd here's what I get when I run it on rgl: dupnames("rgl") name first dup 1 fns knitr.R:12 knitr.R:165 2 fns knitr.R:12 pkgdown.R:14 3 fns knitr.R:12shiny.R:8 Those are okay; the fns object is a temporary that is later removed in each case. Duncan Murdoch On 0

Re: [Rd] [External] Get list of active calling handlers?

2024-02-07 Thread Duncan Murdoch
On 07/02/2024 8:36 a.m., luke-tier...@uiowa.edu wrote: On Tue, 6 Feb 2024, Duncan Murdoch wrote: The SO post https://stackoverflow.com/q/77943180 tried to call globalCallingHandlers() from a function, and it failed with the error message "should not be called with handlers on the

Re: [Rd] [EXTERNAL] Re: NOTE: multiple local function definitions for ?fun? with different formal arguments

2024-02-07 Thread Duncan Murdoch
uplicated names in ", basename(f), ":\n") cat(paste(allnames[dups], collapse = ", "), "\n") } } It could be made more fancy to report the locations of both the original and the dup if you feel motivated. Duncan Murdoch On 06/02/2024 8:09 p.m., Chris Bla

[Rd] Get list of active calling handlers?

2024-02-06 Thread Duncan Murdoch
including non-global ones (like the one try() added in the line above)? Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] NOTE: multiple local function definitions for ?fun? with different formal arguments

2024-02-06 Thread Duncan Murdoch
code isn't smart enough to follow every code path, so it gives the note to warn you that you might have something wrong. You still have the same issue with my workaround, but the check code isn't smart enough to notice that. Duncan Murdoch H. On 2/4/24 09:07, Duncan Murdoch wrote: On 04/02

Re: [Rd] Advice debugging M1Mac check errors

2024-02-04 Thread Duncan Murdoch
Hi John. I don't think the 80 bit format was part of IEEE 754; I think it was an Intel invention for the 8087 chip (which I believe preceded that standard), and didn't make it into the standard. The standard does talk about 64 bit and 128 bit floating point formats, but not 80 bit. Duncan

Re: [Rd] NOTE: multiple local function definitions for ?fun? with different formal arguments

2024-02-04 Thread Duncan Murdoch
object in your function which can't be called unconditionally. The workaround doesn't create such an object. Recognizing that your function never tries to call fun requires global inspection of toto(), and most of the checks are based on local inspection. Duncan Murdoch ___

Re: [Rd] [Feature Request] Hide API Key in download.file() / R's libcurl

2024-02-01 Thread Duncan Murdoch
I've just been reading https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication, and it states that putting userid:password in the URL is deprecated, but it does make sense that R should protect users who still use that scheme. Duncan Murdoch On 01/02/2024 11:28 a.m., Xinyi wrote

Re: [Rd] [External] readChar() could read the whole file by default?

2024-01-29 Thread Duncan Murdoch
, but I think usually people would want the behaviour of paste(readLines(f), collapse = "\n"). Duncan Murdoch On Fri, Jan 26, 2024 at 2:05 PM luke-tierney--- via R-devel wrote: On Fri, 26 Jan 2024, Michael Chirico wrote: I am curious why readLines() has a default (n=-1L) to read the fu

Re: [R-pkg-devel] Native pipe in package examples

2024-01-26 Thread Duncan Murdoch
On 25/01/2024 12:38 p.m., Henrik Bengtsson wrote: On Thu, Jan 25, 2024 at 8:27 AM Duncan Murdoch wrote: On 25/01/2024 11:18 a.m., Henrik Bengtsson wrote: On Thu, Jan 25, 2024 at 7:48 AM Duncan Murdoch wrote: On 25/01/2024 10:27 a.m., Josiah Parry wrote: Hey all, I've encountered use

Re: [R-pkg-devel] Native pipe in package examples

2024-01-25 Thread Duncan Murdoch
On 25/01/2024 11:44 a.m., Josiah Parry wrote: The package of course passes R CMD check otherwise it wouldn’t be on CRAN! (: CRAN doesn't run checks using R 3.6.0. The package claims it works there, and maybe it will, but it won't pass R CMD check. Duncan Murdoch Thank you Henrik! Good

Re: [R-pkg-devel] Native pipe in package examples

2024-01-25 Thread Duncan Murdoch
On 25/01/2024 11:18 a.m., Henrik Bengtsson wrote: On Thu, Jan 25, 2024 at 7:48 AM Duncan Murdoch wrote: On 25/01/2024 10:27 a.m., Josiah Parry wrote: Hey all, I've encountered use of the native pipe operator in the examples for 'httr2' e.g. request("http://example.com;) |> req

Re: [R-pkg-devel] Native pipe in package examples

2024-01-25 Thread Duncan Murdoch
t run properly. Duncan Murdoch __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] Does dependencies up to date on the pretest CRAN infrastructure

2024-01-12 Thread Duncan Murdoch
s the recent fix. Duncan Murdoch On 12/01/2024 1:09 p.m., Serge wrote: I'm the mainteneur of the package MixAll. This package has a dependency to the package rtkore (whom I'm the mainteneur too). I updated the package rtkore one month ago, fixing a compilation problem on windows devel platform

Re: [R-pkg-devel] Suggests with non-CRAN packages

2024-01-10 Thread Duncan Murdoch
en pages in Hosting Data Packages via drat: A Case Study with Hurricane Exposure Data at https://journal.r-project.org/archive/2017/RJ-2017-026/index.html And for the impatient, see the drat "Quick Start" instructions at https://github.com/eddelbuettel/drat They work

Re: [R-pkg-devel] Suggests with non-CRAN packages

2024-01-10 Thread Duncan Murdoch
- but this time make sure to use a properly formatted repository, not just a web site with some binary builds. The "drat" package makes building one of those really easy. Duncan Murdoch __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] Assigning an object to the global environment (shiny package)

2024-01-04 Thread Duncan Murdoch
re. The user can choose where to assign the result of that function. So instead of: user says to save to "myvar" you save to myvar user uses myvar you would have user says to save value you save it privately user runs myvar <- savedvalue() If your app requires users to b

Re: [R-pkg-devel] [Rd] static html vignette

2024-01-04 Thread Duncan Murdoch
they practically never do that. > > Life would be much simpler if the Suggests packages would not be > (automatically) installed, or if CRAN provided a way to include static > Vignettes to avoid the heavy dependencies of building them. > Users aren't forced to install "Su

Re: [R-pkg-devel] Suggests with non-CRAN packages

2024-01-03 Thread Duncan Murdoch
ce to include an Additional_repositories field so they can find the package. This needs to be organized as an actual repository; the drat package is a very convenient way to set one up. Duncan Murdoch __ R-package-devel@r-project.org maili

Re: [Rd] eval(parse()) within mutate() returning same value for all rows

2023-12-29 Thread Duncan Murdoch
ent." That text has been unchanged in the help page for 13 years. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] zapsmall(x) for scalar x

2023-12-17 Thread Duncan Murdoch
I'm really confused. Steve's example wasn't a scalar x, it was a vector. Your zapsmall() proposal wouldn't zap it to zero, and I don't see why summary() would if it was using your proposal. Duncan Murdoch On 17/12/2023 8:43 a.m., Gregory R. Warnes wrote: Isn’t that the correct outcome

Re: [Rd] Request: documenting more specifically language objects in the R Language Definition document

2023-12-13 Thread Duncan Murdoch
benefit for you if you are really interested in working with this kind of thing. Duncan Murdoch On 13/12/2023 4:19 a.m., Iago Giné Vázquez wrote: Dear all, This is a request to get language objects more documented in the R Language Definition document (CRAN version<https://cran.r-project.

Re: [R-pkg-devel] Wrong mailing list: Could the 100 byte path length limit be lifted?

2023-12-12 Thread Duncan Murdoch
I don't know what the warning looks like, but the ?tar help page discusses the issues. Duncan Murdoch On 12/12/2023 3:10 p.m., Ben Bolker wrote: FWIW the R-windows FAQ says: Yet another complication is a 260 character limit on the length of the entire path name imposed by Windows

Re: [R-pkg-devel] vignette with "Run Examples"

2023-12-12 Thread Duncan Murdoch
the results until a button is pressed to display them. Duncan Murdoch __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] Virtual C++ functions

2023-11-15 Thread Duncan Murdoch
of times, so the overhead adds up. Duncan Murdoch __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] Package submission issue - OMP reduction (flang-new)

2023-11-14 Thread Duncan Murdoch
On 14/11/2023 9:38 a.m., Tomas Kalibera wrote: I would definitely look for a work-around. In the end we want to give users software that works, rather than something that doesn't, but telling them, possibly with good evidence, that it is not our fault. Fortune nomination!

Re: [R-pkg-devel] Package submission fail

2023-11-13 Thread Duncan Murdoch
_codes\_V202201" (and similar). That's not legal Rd syntax. You could use "\code{country_codes_V202201}" or some other verbatim wrapper. I see a 4th note, about files Combined_Results.csv and Combined_Results.xlsx. If those files are produced by an example or test, they should be

Re: [R-pkg-devel] The problem with resubmitting the package to the Cran

2023-11-11 Thread Duncan Murdoch
://github.com/Klona9/r-perARMA.git gh repo clone Klona9/r-perARMA I will be very glad for any help. Your examples for `parma_ident` appear to create a directory named "PARMA21del1_ident" below the current directory. You can't create files there, you need to create them in tempdir(). Dunc

Re: [R-pkg-devel] Warning from orphaned package on check page

2023-11-09 Thread Duncan Murdoch
I have volunteered to take over maintenance of plotrix. I should be submitting a version without the "orphaned" designation soon. (If anyone else would rather be maintainer, please get in touch with me offline.) Duncan Murdoch On 09/11/2023 9:47 a.m., Liam J. Revell wrote:

  1   2   3   4   5   6   7   8   9   10   >