Skip to content

Commit

Permalink
removes partial matching for nano object subsetting
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Dec 30, 2024
1 parent 57df449 commit 1d32e73
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# nanonext 1.4.0.9000 (development)

#### Updates

* Removes partial matching from using `$`, `[[` or `[` on an object inheriting from class 'nano'.

# nanonext 1.4.0

#### New Features
Expand Down
6 changes: 3 additions & 3 deletions R/nano.R
Original file line number Diff line number Diff line change
Expand Up @@ -409,18 +409,18 @@ print.tlsConfig <- function(x, ...) {

#' @export
#'
`[[.nano` <- function(x, i, exact = FALSE)
`[[.nano` <- function(x, i, exact = TRUE)
attr(x, i, exact = exact)

#' @export
#'
`[.nano` <- function(x, i, exact = FALSE)
`[.nano` <- function(x, i, exact = TRUE)
attr(x, deparse(substitute(i)), exact = exact)

#' @export
#'
`$.nano` <- function(x, name)
attr(x, name, exact = FALSE)
attr(x, name, exact = TRUE)

#' @export
#'
Expand Down
1 change: 1 addition & 0 deletions nanonext.Rproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Version: 1.0
ProjectId: 6e5884e8-3d22-48de-a8f2-62c1a7a01346

RestoreWorkspace: Default
SaveWorkspace: Default
Expand Down

0 comments on commit 1d32e73

Please sign in to comment.