This works as expected:
"[.foo" <- function(x, i, j) {
sx <- substitute(x)
si <- substitute(i)
sj <- substitute(j)
100 * length(sx) + 10 * length(si) + length(sj)
}
x <- 1:10
class(x) <- "foo"
x[y == z, a(x)]
#> [1] 132
Note in your implementation you ask the function evaluate the
expres
Dear Terry,
You misunderstand the note. The problem is that your tar.gz is too
large. The critical bit is:
Size of tarball: 7528635 bytes
The CRAN repository policies state:
"Packages should be of the minimum necessary size. Reasonable
compression should be used for data (not just .rda files) and
When I run R CMD check on the survival package I invariably get a note:
...
* checking for file ‘survival/DESCRIPTION’ ... OK
* this is package ‘survival’ version ‘3.2-6’
* checking CRAN incoming feasibility ... NOTE
Maintainer: ‘Terry M Therneau ’
...
This is sufficient for the auto-check process
Hello R-devel,
I am currently attempting to implement an API similar to data.table wherein
single bracket subsetting can accept an unquoted expression to be evaluated in
the context of my object.
A simple example from the data.table package looks like this:
DT <- data.table(col1 = c('a', 'b',