File: attributes.R

package info (click to toggle)
r-cran-r.methodss3 1.8.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 300 kB
  • sloc: sh: 12; makefile: 2
file content (27 lines) | stat: -rw-r--r-- 438 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
library("R.methodsS3")

message("TESTING: attributes()...")

export <- R.methodsS3:::export
`export<-` <- R.methodsS3:::`export<-`
noexport <- R.methodsS3:::noexport
`S3class<-` <- R.methodsS3:::`S3class<-`


foo <- function() NULL
str(foo)

foo <- export(foo)
str(foo)

export(foo) <- TRUE
str(foo)

foo <- noexport(foo)
str(foo)

foo.Bar <- function(...) NULL
S3class(foo.Bar) <- "Bar"
str(foo)

message("TESTING: attributes()...DONE")