File tree Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Original file line number Diff line number Diff line change 11
2- R Under development (unstable) (2025-01-24 r87624 ) -- "Unsuffered Consequences"
2+ R Under development (unstable) (2025-04-22 r88173 ) -- "Unsuffered Consequences"
33Copyright (C) 2025 The R Foundation for Statistical Computing
44Platform: aarch64-apple-darwin24.2.0
55
@@ -17986,6 +17986,35 @@ attr(,"response")
1798617986[1] 1
1798717987attr(,".Environment")
1798817988<environment: R_GlobalEnv>
17989+ >
17990+ > ## use of '::' in terms to be marked as special is *wrong*
17991+ > ff <- list(y ~ offset(w) + x1 + s(x2),
17992+ + y ~ stats::offset(w) + x1 + mgcv::s(x2))
17993+ > tt <- lapply(ff, terms, specials = c("s", "mgcv::s"))
17994+ > lapply(tt, attr, "offset")
17995+ [[1]]
17996+ [1] 2
17997+
17998+ [[2]]
17999+ NULL
18000+
18001+ > lapply(tt, attr, "specials")
18002+ [[1]]
18003+ [[1]]$s
18004+ [1] 4
18005+
18006+ [[1]]$`mgcv::s`
18007+ NULL
18008+
18009+
18010+ [[2]]
18011+ [[2]]$s
18012+ NULL
18013+
18014+ [[2]]$`mgcv::s`
18015+ NULL
18016+
18017+
1798918018>
1799018019>
1799118020>
You can’t perform that action at this time.
0 commit comments