tests/DevEvalProduct.R

view <- R.devices:::view

message("*** DevEvalProduct ...")

message("*** DevEvalProduct - subsetting ...")

p <- R.devices:::DevEvalProduct("foo", tags=c("a", "b"))
for (ff in c("fullname", "name", "tags")) {
  cat(sprintf("%s: %s\n", ff, substring(p[[ff]], 1, 50)))
}

library("R.devices")

p <- DevEvalProduct("foo", tags=c("a", "b"))
for (ff in c("fullname", "name", "tags")) {
  cat(sprintf("%s: %s\n", ff, substring(p[[ff]], 1, 50)))
}

p <- DevEvalProduct("foo", tags=c("a", "b"))
valueA <- p[["name"]]
valueB <- p$name
stopifnot(identical(valueB, valueA))
value <- p[["non-existing-field"]]
stopifnot(is.null(value))

message("*** DevEvalProduct - subsetting ... DONE")


message("*** DevEvalProduct - view() ...")
view(p)
!p
message("*** DevEvalProduct - view() ... DONE")

message("*** DevEvalProduct ... DONE")

Try the R.devices package in your browser

Any scripts or data that you put into this service are public.

R.devices documentation built on Oct. 30, 2019, 10:58 a.m.