search for: warnpartialmatchdollar

Displaying 14 results from an estimated 14 matches for "warnpartialmatchdollar".

2012 Nov 16
1
Help page on '$': 'warnPartialMatchAttr' should be 'warnPartialMatchDollar'
...estions/6065724/assigning-value-to-a-variable-that-has-a-dot-in-the-name made me realize this. The context is 'a' is assigned to ret$log.id, but then ret$log returns "a" and ret$l also returns "a". There is a comment from Charles on the question: "Also see options(warnPartialMatchDollar=T) if you want to track these." But, in bottom part, there is Chase's answer, quoting help page for $. ... under Character indices: Thus the default behaviour is to use partial matching only when extracting from recursive objects (except environments) by $. Even in that case, warnings c...
2019 Feb 03
1
Inefficiency in df$col
...a pretty big performance hit, compared to letting the primitive $ operator do it, just to produce a warning. But it wasn't until now that I noticed this NEWS in R-3.1.1: * The warning when using partial matching with the $ operator on data frames is now only given when options("warnPartialMatchDollar") is TRUE. for which the code was changed to: `$.data.frame` <- function(x,name) { a <- x[[name]] if (!is.null(a)) return(a) a <- x[[name, exact=FALSE]] if (!is.null(a) && getOption("warnPartialMatchDollar", default=FALSE)) { names &l...
2019 Feb 04
2
Inefficiency in df$col
...maybe wasn't completely clear. The $ operator for data frames was previously done in C - since it was done by the same primitive as for lists. In R-3.1.0, this was changed - producing a massive slowdown - for the purpose of giving a warning on partial matches even if the user had not set the warnPartialMatchDollar option to TRUE. In R-3.1.1, this was changed to not warn unless warnPartialMatchDollar was TRUE which was the PREVIOUS behaviour. In other words, this change reverted the change made in R-3.1.0. But instead of simply deleting the definition of $.data.frame, R-3.1.1 added extra code to it, the on...
2019 Feb 04
3
Inefficiency in df$col
...The $ operator for data frames was >> previously done in C - since it was done by the same primitive as for >> lists. In R-3.1.0, this was changed - producing a massive slowdown - >> for the purpose of giving a warning on partial matches even if the >> user had not set the warnPartialMatchDollar option to TRUE. In >> R-3.1.1, this was changed to not warn unless warnPartialMatchDollar was >> TRUE which was the PREVIOUS behaviour. In other words, this change >> reverted the change made in R-3.1.0. But instead of simply deleting >> the definition of $.data.frame, R-...
2016 Jan 20
2
Warn on partial matches in R CMD check
Hi all (but especially Kurt), Would it be possible to have a flag to R CMD check that warned on partial all matches, i.e. turning on: options( warnPartialMatchDollar = TRUE, warnPartialMatchArgs = TRUE, warnPartialMatchAttr = TRUE ) I think this is good practice for package code. I don't think it can currently be made part of the default (because sometimes the warnings come from other packages), but it would be really convenient to have as a switch....
2019 Feb 04
0
Inefficiency in df$col
...mpletely clear. The $ operator for data frames was > previously done in C - since it was done by the same primitive as for > lists. In R-3.1.0, this was changed - producing a massive slowdown - > for the purpose of giving a warning on partial matches even if the > user had not set the warnPartialMatchDollar option to TRUE. In > R-3.1.1, this was changed to not warn unless warnPartialMatchDollar was > TRUE which was the PREVIOUS behaviour. In other words, this change > reverted the change made in R-3.1.0. But instead of simply deleting > the definition of $.data.frame, R-3.1.1 added extr...
2019 Feb 04
0
Inefficiency in df$col
...was >>> previously done in C - since it was done by the same primitive as for >>> lists. In R-3.1.0, this was changed - producing a massive slowdown - >>> for the purpose of giving a warning on partial matches even if the >>> user had not set the warnPartialMatchDollar option to TRUE. In >>> R-3.1.1, this was changed to not warn unless warnPartialMatchDollar was >>> TRUE which was the PREVIOUS behaviour. In other words, this change >>> reverted the change made in R-3.1.0. But instead of simply deleting >>> th...
2019 Jul 02
1
eliminate a partial argument match warning in R CMD check
Hello, I'm seeing a nuisance warning when I run `R CMD check --as-cran whatever_x.y.z.tar.gz`. I generally work with these options set: options( warnPartialMatchArgs = TRUE, warnPartialMatchAttr = TRUE, warnPartialMatchDollar = TRUE ) And I see this: * checking use of SHLIB_OPENMP_*FLAGS in Makefiles ...Warning in dir("src", patt = "[.]c$") : partial argument match of 'patt' to 'pattern' Warning in dir("src", patt = "[.](cc|cpp)$") : partial argument match of...
2019 Feb 18
1
Extract.data.frame.Rd about $.data.frame
...r \code{$}) checks \code{value} for the correct number of rows, and replicates it if necessary. The added "(with no partial matching of column names)" is wrong. The default method of '$' (for extraction) allows partial matching for list; partial matching gives warning if option warnPartialMatchDollar is TRUE. -------------------------------------------- On Fri, 15/2/19, Martin Maechler <maechler at stat.math.ethz.ch> wrote: Subject: Re: [Rd] Extract.data.frame.Rd about $.data.frame Cc: r-devel at r-project.org Date: Friday, 15 February, 2019, 4:15 PM >>>>> Suharto A...
2010 Nov 17
3
Fatal Error R
Hello. First, I'm thankful about your wonderful project. However, I have serious worries about the reliability of R. I found the next bug which I consider important because in my job everytime We work with datanames like next. Please see below: b=data.frame(matrix(1:9,ncol=3)) names(b)=c("q99","r88","s77") >b q99 r88 s77 1 1 4 7 2 2 5 8 3
2010 Sep 03
0
Pointer to fourteen patches to speed up R
...test script: test-dollar.r This test shows about a 40% decrease in the time needed to extract elements of lists and environments. Changes unrelated to speed improvement: A small error-reporting bug is fixed, illustrated by the following output with r52822: > options(warnPartialMatchDollar=TRUE) > pl <- pairlist(abc=1,def=2) > pl$ab [1] 1 Warning message: In pl$ab : partial match of 'ab' to '' Some code is changed at the end of R_subset3_dflt because it seems to be more correct, as discussed in code comments. patch-evalList...
2010 Sep 03
1
Fourteen patches to speed up R
...test script: test-dollar.r This test shows about a 40% decrease in the time needed to extract elements of lists and environments. Changes unrelated to speed improvement: A small error-reporting bug is fixed, illustrated by the following output with r52822: > options(warnPartialMatchDollar=TRUE) > pl <- pairlist(abc=1,def=2) > pl$ab [1] 1 Warning message: In pl$ab : partial match of 'ab' to '' Some code is changed at the end of R_subset3_dflt because it seems to be more correct, as discussed in code comments. patch-evalList...
2007 Oct 03
1
R-2.6.0 is released
...ns 'showWarnCalls' and 'showErrorCalls' to give a concise traceback on warnings and errors. showErrorCalls=TRUE is the default for non-interactive sessions. Option 'showNCalls' controls how abbreviated the call sequence is. o New options 'warnPartialMatchDollar', 'warnPartialMatchArgs' and 'warnPartialMatchAttr' to help detect the unintended use of partial matching in $, argument matching and attr() respectively. o A device named as a character string in options(device =) is now looked for in the...
2007 Oct 03
1
R-2.6.0 is released
...ns 'showWarnCalls' and 'showErrorCalls' to give a concise traceback on warnings and errors. showErrorCalls=TRUE is the default for non-interactive sessions. Option 'showNCalls' controls how abbreviated the call sequence is. o New options 'warnPartialMatchDollar', 'warnPartialMatchArgs' and 'warnPartialMatchAttr' to help detect the unintended use of partial matching in $, argument matching and attr() respectively. o A device named as a character string in options(device =) is now looked for in the...