[Rd] ?symbols man page (PR#8713)

2006-03-27 Thread toby
Full_Name: TOBY MARTHEWS Version: 2.2.1 OS: Windows XP Submission from: (NULL) (139.133.7.37) Just a small one, but it did trip me up today. On the ?symbols man page the following paragraph: inches: If 'inches' is 'FALSE', the units are taken to be those of the x

[Rd] not a problem: a submission (PR#8714)

2006-03-27 Thread toby
Full_Name: TOBY MARTHEWS Version: 2.1.1 OS: Windows XP Submission from: (NULL) (139.133.7.38) I think you should have better examples on the ?plot man page, if you don't mind me saying. Can I suggest something like this, which would probably stop so many emails to the R help about how to p

[Rd] configure on solaris 2.9 with non GNU compilers (PR#8300)

2005-11-11 Thread toby . m
Full_Name: Toby Muhlhofer Version: 2.2.0, 2.1.1 OS: Solaris 2.9 Submission from: (NULL) (128.83.62.46) I'm trying to compile R on a Solaris machine. The default C compiler is cc (although gcc is available) and the default Fortran compiler is f95 (although g77 is available). Without definin

[Rd] patch for gregexpr(perl=TRUE)

2019-02-19 Thread Toby Hocking
complexity which is quadratic in subject size) for strsplit with perl=TRUE. My patch does NOT fix that, but I suspect that a similar fix could be accomplished (because I see that strlen is being called in a while loop in do_strsplit as well). Thanks Toby Dylan Hocking [[alternative HTML

[Rd] Bug: time complexity of substring is quadratic as string size and number of substrings increases

2019-02-20 Thread Toby Hocking
f substrings to extract. Maybe the C code is calling strlen for each of these (identical) text/subject elements? Anyway, it would be useful to have some feedback to make sure this is indeed a bug before I post on bugzilla. (btw thanks Martin for signing me up for an account) Toby [[al

Re: [Rd] Bug: time complexity of substring is quadratic as string size and number of substrings increases

2019-02-20 Thread Toby Hocking
-substring-bug.R To me this is a clear indication of a bug in substring, but again it would be nice to have some feedback/confirmation before posting on bugzilla. Also this suggests a fix -- just need to copy whatever stringi::stri_sub is doing. On Wed, Feb 20, 2019 at 11:16 AM Toby Hocking wrote

[Rd] R pkg install should fail for unsuccessful DLL copy on windows?

2019-05-29 Thread Toby Hocking
Hi all, I am having an issue related to installing packages on windows with R-3.6.0. When installing a package that is in use, I expected R to stop with an error. However I am getting a warning that the DLL copy was not successful, but the overall package installation IS successful. This is quite

Re: [Rd] R pkg install should fail for unsuccessful DLL copy on windows?

2019-05-30 Thread Toby Hocking
.0.1 assertthat_0.2.1 dplyr_0.8.1 crayon_1.3.4 [5] R6_2.4.0 grid_3.6.0 plyr_1.8.4 magic_1.5-9 [9] gtable_0.3.0 magrittr_1.5 scales_1.0.0 ggplot2_3.1.1 [13] pillar_1.4.0 rlang_0.3.4 lazyeval_0.2.2 geometry_0.4.1 [17] tools_3.6.0 glue_1.3.1 pur

Re: [Rd] R pkg install should fail for unsuccessful DLL copy on windows?

2019-05-31 Thread Toby Hocking
et an error if they want one. I tried setting options(warn=2) but for some reason I still get a warning. I believe that is a bug in install.packages -- if I specify options(warn=2) it should convert that warning to an error (but it currently does not). Toby On Thu, May 30, 2019 at 4:50 PM Pages,

Re: [Rd] R pkg install should fail for unsuccessful DLL copy on windows?

2019-06-06 Thread Toby Hocking
If anybody else has this issue, please add a comment on https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17478 so we are more likely to get R-core to address this. Thanks Toby On Tue, Jun 4, 2019 at 2:58 PM Pages, Herve wrote: > On 5/31/19 08:41, Toby Hocking wrote:... > > In m

Re: [Rd] Feature request: non-dropping regmatches/strextract

2019-08-29 Thread Toby Hocking
if you want "to extract regex matches into a new column in a data.frame" then there are some package functions which do exactly that. three examples are namedCapture::df_match_variable, rematch2::bind_re_match, and tidyr::extract. For a more detailed discussion see my R journal submission (under re

[Rd] R CMD build should fail early for old package versions?

2019-09-30 Thread Toby Hocking
ave been even faster / easier if R CMD build failed early, with an error message that says something like "Can not build package XXX because it Suggests: tidyr (>= 1.0) but tidyr 0.8.3 is installed" Is that possible? Toby [[alternative HTML

[Rd] stats::reshape quadratic in number of input columns

2019-10-30 Thread Toby Hocking
several seconds for data.table::melt) For a fix, I would suggest looking into how they implemented the same operation in the data.table package, which in my test shows computation times that seem to be linear. Toby [[alternative HTML version deleted

[Rd] add jsslogo.jpg to R sources?

2020-01-08 Thread Toby Hocking
as jss.cls). thanks and happy new year Toby [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] add jsslogo.jpg to R sources?

2020-01-10 Thread Toby Hocking
hi there, thanks for the feedback, sorry about the cross-posting, and that makes sense given the nojss option, which I was not aware of. On Wed, Jan 8, 2020 at 9:16 AM Achim Zeileis wrote: > On Wed, 8 Jan 2020, Iñaki Ucar wrote: > > > On Wed, 8 Jan 2020 at 19:21, Toby Ho

[Rd] docs about _R_CHECK_FORCE_SUGGESTS_ ?

2020-05-13 Thread Toby Hocking
Can someone please add documentation for that environment variable to Writing R Extensions? An appropriate place would be section https://cloud.r-project.org/doc/manuals/r-release/R-exts.html#Suggested-packages which already discusses _R_CHECK_DEPENDS_ONLY_=true [[alternative HTML version

Re: [Rd] docs about _R_CHECK_FORCE_SUGGESTS_ ?

2020-05-16 Thread Toby Hocking
I agree with the doc updates Gabe proposes, they would be helpful. On Wed, May 13, 2020 at 12:56 PM Gabriel Becker wrote: > Hi Toby, > > As Gabor pointed out the place where the various levers R CMD check > supports is in the R-internals manual, but there is a link directly to that

[Rd] mclapply memory leak?

2015-09-02 Thread Toby Hocking
Dear R-devel, I am running mclapply with many iterations over a function that modifies nothing and makes no copies of anything. It is taking up a lot of memory, so it seems to me like this is a bug. Should I post this to bugs.r-project.org? A minimal reproducible example can be obtained by first

Re: [Rd] mclapply memory leak?

2015-09-03 Thread Toby Hocking
ector touches objects, as pointed out by Radford Neal > here: > http://r.789695.n4.nabble.com/Re-R-devel-Digest-Vol-149-Issue-22-td4710367.html > > If so, I don't think this would be easily avoidable, but there may be > mitigation strategies. > > ~G > > On Wed, Sep 2,

Re: [Rd] mclapply memory leak?

2015-09-04 Thread Toby Hocking
N <- length(X) i.list <- splitIndices(N, N/maxjobs) result.list <- list() for(i in seq_along(i.list)){ i.vec <- i.list[[i]] result.list[i.vec] <- mclapply(X[i.vec], FUN) } result.list } On Thu, Sep 3, 2015 at 5:27 PM, Simon Urbanek wrote: > Toby, > &g

[Rd] Un-informative Error in re-building vignettes

2017-11-29 Thread Toby Hocking
I am getting the following on CRAN windows and winbuilder https://www.r-project.org/nosvn/R.check/r-devel-windows-ix86+x86_64/penaltyLearning-00check.html Apparently there is an error in re-building vignettes, but I do not have any idea what it is, because all that is listed is three dots (...). I

[Rd] valgrind false positive on R startup?

2020-06-09 Thread Toby Hocking
Hi all, I'm on Ubuntu 18.04, running R-4.0.0 which I compiled from source, and using valgrind I am always seeing the following message. Does anybody else see that? Is that a known false positive? Any ideas how to fix/suppress? Seems related to TRE, do I need to upgrade that? (base) tdhock@maude-M

Re: [Rd] valgrind false positive on R startup?

2020-06-18 Thread Toby Hocking
mtests/README.txt . Set > suppressions in ~/.valgrindrc, e.g. the CRAN check machine has > > --suppressions=/data/blackswan/ripley/wcsrtombs.supp > > It is an issue in your OS (glibc), not TRE nor R. > > On 10/06/2020 00:21, Toby Hocking wrote: > > Hi all, > > > >

[Rd] Error in substring: invalid multibyte string

2020-06-26 Thread Toby Hocking
ar give an error but regexpr works for telling me the length: > regexpr(".*", "Jens Oehlschl\xe4gel-Akiyoshi") [1] 1 attr(,"match.length") [1] 29 Is that inconsistency normal/intended? btw this example comes from our very own list: > readLines(" https:

Re: [Rd] Error in substring: invalid multibyte string

2020-06-27 Thread Toby Hocking
AM Ivan Krylov wrote: > On Fri, 26 Jun 2020 15:57:06 -0700 > Toby Hocking wrote: > > >invalid multibyte string at 'gel-A<6b>iyoshi' > > >https://stat.ethz.ch/pipermail/r-devel/1999-November/author.html > > The server says that the text is UTF-8:

Re: [Rd] HELPWANTED keyword in bugs.r-project.org

2020-08-11 Thread Toby Hocking
Hi Luke, I just wanted to say thanks for taking the time to add this tag. That is very helpful to know which bugs are worth working on and need help. Keep up the good work! Toby On Wed, Aug 5, 2020 at 7:23 AM wrote: > Just a quick note to mention that we have added a HELPWANTED keyword &

[Rd] Stale link from ?check to R Internals

2020-08-19 Thread Toby Hocking
Hi the reference to R Internals https://cran.r-project.org/doc/manuals/r-release/R-ints.html#Tools in ?check (PkgUtils.Rd in utils package) is stale. Here is my proposed patch (use named reference rather than numeric reference to avoid any similar broken links in the future). Index: src/library/ut

Re: [Rd] r-project.org SSL certificate issues

2020-08-19 Thread Toby Hocking
Hi win-builder certificate expired on Aug 15. My student on the other side of the world is also seeing this problem so I think it needs to be fixed... > download.file("https://win-builder.r-project.org";, "/tmp/wb.html") trying URL 'https://win-builder.r-project.org' Error in download.file("https:/

Re: [Rd] Specifying C Standard in Package's Makevars File

2020-09-28 Thread Toby Hocking
WRE explains for C++11 14 etc standards but I don't know about C https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Using-C_002b_002b11-code BTW I believe this question would be more appropriate for R-package-devel. On Mon, Sep 28, 2020 at 4:44 AM Andreas Kersting wrote: > Hi, > > wha

[Rd] NEWS item for bugfix in normalizePath and file.exists?

2021-04-27 Thread Toby Hocking
Hi all, Today I noticed bug(s?) in R-4.0.5, which seem to be fixed in R-devel already. I checked on https://developer.r-project.org/blosxom.cgi/R-devel/NEWS and there is no mention of these changes, so I'm wondering if they are intentional? If so, could someone please add a mention of the bugfix in

Re: [Rd] NEWS item for bugfix in normalizePath and file.exists?

2021-04-28 Thread Toby Hocking
t; Encoding(x) <- "unknown" Sys.setlocale(locale="C") f <- tempfile() cat("", file = f) two <- c(x, f) file.exists(two) and in that case the correct response from R, in my opinion, would be c(FALSE, TRUE) -- not an error. Toby On Wed, Apr 28, 2021 at 3:10 A

Re: [Rd] NEWS item for bugfix in normalizePath and file.exists?

2021-04-28 Thread Toby Hocking
Apr 28, 2021 at 9:04 AM Tomas Kalibera wrote: > > On 4/28/21 5:22 PM, Martin Maechler wrote: > >>>>>> Toby Hocking > >>>>>> on Wed, 28 Apr 2021 07:21:05 -0700 writes: > > > Hi Tomas, thanks for the thoughtful reply. That makes se

Re: [Rd] [External] Possible ALTREP bug

2021-06-16 Thread Toby Hocking
By the way, where is the documentation for INTEGER_ELT, REAL_ELT, etc? I looked in Writing R Extensions and R Internals but I did not see any mention. REAL_ELT is briefly mentioned on https://svn.r-project.org/R/branches/ALTREP/ALTREP.html Would it be possible to please add some mention of them to

Re: [Rd] [External] Possible ALTREP bug

2021-06-17 Thread Toby Hocking
_t i, SEXP v); > > So the indexing is with R_xlen_t and they return the value itself as one > would expect. > > Cheers, > Simon > > > > On Jun 17, 2021, at 2:22 AM, Toby Hocking wrote: > > > > By the way, where is the documentation for INTEGER_ELT, REAL_ELT,

[Rd] na.omit inconsistent with is.na on list

2021-08-11 Thread Toby Hocking
na.omit is documented as "na.omit returns the object with incomplete cases removed." and "At present these will handle vectors," so I expected that when it is used on a list, it should return the same thing as if we subset via is.na; however I observed the following, > L <- list(NULL, NA, 0) > str

Re: [Rd] na.omit inconsistent with is.na on list

2021-08-11 Thread Toby Hocking
ass")= chr "AsIs" > is.na(f) L [1,] FALSE [2,] TRUE [3,] FALSE > na.omit(f) L 1 2 NA 3 0 On Wed, Aug 11, 2021 at 9:58 PM Toby Hocking wrote: > na.omit is documented as "na.omit returns the object with incomplete cases > removed." and "At present these

Re: [Rd] na.omit inconsistent with is.na on list

2021-08-12 Thread Toby Hocking
Hi Gabe thanks for the feedback. On Thu, Aug 12, 2021 at 1:19 PM Gabriel Becker wrote: > Hi Toby, > > This definitely appears intentional, the first expression of > stats:::na.omit.default is > >if (!is.atomic(object)) > > return(object) > > Based on t

Re: [Rd] na.omit inconsistent with is.na on list

2021-08-14 Thread Toby Hocking
data.frame had a list column representing the lat-lon > of an observation, we might only be able to represent missing values > like c(NA, NA). > > On Fri, 13 Aug 2021 at 17:27, Iñaki Ucar wrote: > > > > On Thu, 12 Aug 2021 at 22:20, Gabriel Becker > wrote: > > > >

Re: [Rd] na.omit inconsistent with is.na on list

2021-08-16 Thread Toby Hocking
task is not > equivalent to the conceptual task na.omit is doing, in my opinion, as > illustrated by what the data.frame method does. > > Thus what i was getting at above about it not being clear that lst[is.na(lst)] > being the correct thing for na.omit to do > > ~G > > ~G

Re: [Rd] Problem with accessibility in R 4.2.0 and 4.2.1.

2022-09-22 Thread Toby Hocking
Another option is to use https://emacspeak.sourceforge.net/ (version of emacs editor/ide which can speak letters/words/lines -- has a blind maintainer) with https://ess.r-project.org/ (interface for editing and running R code from within emacs) On Thu, Sep 22, 2022 at 9:42 AM Duncan Murdoch wrote

Re: [Rd] `dendrapply` Enhancements

2023-02-24 Thread Toby Hocking
ence it is important that your code contribution makes minimal changes in that area. Did you hear about the R project sprint 2023? https://contributor.r-project.org/r-project-sprint-2023/ Your work falls into the "new developments" category so I think you could apply for that funding to parti

[Rd] read.csv quadratic time in number of columns

2023-03-29 Thread Toby Hocking
, please see https://github.com/tdhock/atime/issues/8 Sincerely, Toby Dylan Hocking [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] write.csv performance improvements?

2023-03-29 Thread Toby Hocking
://github.com/tdhock/atime/issues/10 Sincerely, Toby Dylan Hocking [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Bug in PCRE interface code

2023-09-05 Thread Toby Hocking
BTW this is documented here http://pcre.org/current/doc/html/pcre2api.html#infoaboutpattern with a helpful example, copied below. As a simple example of the name/number table, consider the following pattern after compilation by the 8-bit library (assume PCRE2_EXTENDED is set, so white space - incl

Re: [Rd] FR: valid_regex() to test string validity as a regular expression

2023-10-11 Thread Toby Hocking
Hi Michael, it sounds like you don't want to use a CRAN package for this, but you may try re2, see below. > grepl("(invalid","subject",perl=TRUE) Error in grepl("(invalid", "subject", perl = TRUE) : invalid regular expression '(invalid' In addition: Warning message: In grepl("(invalid", "subject

Re: [Rd] Partial matching performance in data frame rownames using [

2023-12-19 Thread Toby Hocking
k the CheckUserInterrupt patch is a good idea, though. Best, Toby On Sat, Dec 16, 2023 at 2:49 AM Ivan Krylov wrote: > > On Wed, 13 Dec 2023 09:04:18 +0100 > Hilmar Berger via R-devel wrote: > > > Still, I feel that default partial matching cripples the functionality > > of

Re: [Rd] Partial matching performance in data frame rownames using [

2023-12-19 Thread Toby Hocking
k the CheckUserInterrupt patch is a good idea, though. Best, Toby On Sat, Dec 16, 2023 at 2:49 AM Ivan Krylov wrote: > > On Wed, 13 Dec 2023 09:04:18 +0100 > Hilmar Berger via R-devel wrote: > > > Still, I feel that default partial matching cripples the functionality > > of

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

2024-01-29 Thread Toby Hocking
My opinion is that the proposed feature would be greatly appreciated by users. I had always wondered if I was the only one doing paste(readLines(f), collapse="\n") all the time. It would be great to have the proposed, more straightforward way to read the whole file as a string: readChar("my_file.tx

Re: [Rd] strcapture performance when perl = TRUE

2024-02-13 Thread Toby Hocking
directly (following a very > nice substring approach that I've seen implemented by Toby Hocking > in the nc package - nc::capture_first_vec). > > strcapture2 <- function(pattern, x, proto, perl = FALSE, useBytes = FALSE) { > if (isTRUE(perl)) { > m &l

Re: [Rd] Minor inconsistencies in tools:::funAPI()

2024-07-29 Thread Toby Hocking
Hi Ivan Can you please clarify what input files should be used with your proposed function? I tried a few files in r-svn/src/include and one of them gave me an error. > getdecl("~/R/r-svn/src/include/R.h") [1] "R_FlushConsole" "R_ProcessEvents" "R_WaitEvent" > getdecl("~/R/r-svn/src/include/Rdefi

[Rd] numerical issue with t.test

2024-09-16 Thread Toby Hocking
Hi! I expected that t.test should report a very large p-value (close to 1), even when using paired=TRUE, for the data below (which are very similar). However, I observe p-value = 0.02503 which indicates a significant difference, even though there is none. Can this be fixed please? This is with R-4.

[Rd] Print output during long tests?

2015-05-04 Thread Toby Hocking
I am the author of R package animint which uses testthat for unit tests. This means that there is a single test file (animint/tests/testthat.R) and during R CMD check we will see the following output * checking tests ... Running ‘testthat.R’ I run these tests on Travis, which has a policy that i

Re: [Rd] Could .Primitive("[") stop forcing R_Visible = TRUE?

2024-10-24 Thread Toby Hocking
Thanks for the detailed analysis and proposition Ivan. The patch you are proposing to base R is https://github.com/Rdatatable/data.table/issues/6566#issuecomment-2428912338 right? On Thu, Oct 24, 2024 at 8:48 AM Ivan Krylov via R-devel wrote: > > Hello, > > The "[" primitive operator currently ha

Re: [Rd] Will the R Project be a Mentoring Organization for GSOC 2025?

2025-01-21 Thread Toby Hocking
/wiki/table%20of%20proposed%20coding%20projects and instead of using R-devel, the more appropriate list for GSOC-related info is https://groups.google.com/forum/?pli=1#!forum/gsoc-r Thanks! Toby On Wed, Jan 22, 2025 at 1:19 AM Simon Urbanek wrote: > > Please see the GSoC schedule - for 20

[Rd] R does not build with conda libcurl

2025-04-14 Thread Toby Hocking
ivated a conda environment with libcurl package installed. Is this an issue that R could fix? Thanks Toby [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Bug in prettyNum

2025-05-27 Thread Toby Hocking
Thanks for the contribution Mikko! For testing future patches, you can actually do it right in the web browser, thanks to Heather Turner's R Dev Container, see instructions here https://contributor.r-project.org/r-dev-env/container_setup/ Best Toby On Mon, May 26, 2025 at 6:28 PM Martin Mae

[Rd] Named capture in regexp

2011-02-25 Thread Toby Dylan Hocking
them. Would you consider integrating this patch into the R source code for future releases, so the larger R community can take advantage of this feature? If there's anything else I can do to help please let me know. Sincerely, Toby Dylan Hocking http://cbio.ensmp.fr/~thocking/ Index: ../r-d

[Rd] Request for a crop option on R's standard plot context menu

2021-02-11 Thread Marthews, Toby R. via R-devel
lf: I am just hoping that this feedback might go somewhere useful. R can really do 99% of things kind of perfectly so it seems churlish to point out the 1%, but if this is an easy thing to add in then at least I would use it pretty much every project I work on! Many thanks and best regards, Best