Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/R6Public

Commit73b1298

Browse files
committed
For .DollarNames.R6() add default value for pattern
1 parentc55fac6 commit73b1298

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

‎NEWS.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
R6 2.6.1.9000
22
========
33

4+
* In`.DollarNames.R6()`, add a default value for`pattern = ""`.
45

56
R6 2.6.1
67
========

‎R/r6_class.R‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ R6Class <- encapsulate(function(classname = NULL, public = list(),
543543
})
544544

545545
#' @exportS3Method utils::.DollarNames
546-
.DollarNames.R6<-function(x,pattern) {
546+
.DollarNames.R6<-function(x,pattern="") {
547547
names<- ls(x,all.names=TRUE)
548548
names<-names[grepl(pattern,names)]
549549
setdiff(names, c(".__enclos_env__","initialize"))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp