TypeInfo.Rcheck/tests_i386/copyEnv.Rout
R version 4.0.3 (2020-10-10) -- "Bunny-Wunnies Freak Out"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: i386-w64-mingw32/i386 (32-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(Biobase)
Loading required package: BiocGenerics
Loading required package: parallel
Attaching package: 'BiocGenerics'
The following objects are masked from 'package:parallel':
clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
clusterExport, clusterMap, parApply, parCapply, parLapply,
parLapplyLB, parRapply, parSapply, parSapplyLB
The following objects are masked from 'package:stats':
IQR, mad, sd, var, xtabs
The following objects are masked from 'package:base':
Filter, Find, Map, Position, Reduce, anyDuplicated, append,
as.data.frame, basename, cbind, colnames, dirname, do.call,
duplicated, eval, evalq, get, grep, grepl, intersect, is.unsorted,
lapply, mapply, match, mget, order, paste, pmax, pmax.int, pmin,
pmin.int, rank, rbind, rownames, sapply, setdiff, sort, table,
tapply, union, unique, unsplit, which, which.max, which.min
Welcome to Bioconductor
Vignettes contain introductory material; view with
'browseVignettes()'. To cite Bioconductor, see
'citation("Biobase")', and for packages 'citation("pkgname")'.
> library(TypeInfo)
> typeInfo( copyEnv ) <-
+ SimultaneousTypeSpecification(
+ TypedSignature(
+ oldEnv = "environment" ,
+ newEnv = "environment" ,
+ all.names = "logical"
+ ),
+ returnType = "vector")
>
> proc.time()
user system elapsed
1.01 0.06 1.06
|
TypeInfo.Rcheck/tests_x64/copyEnv.Rout
R version 4.0.3 (2020-10-10) -- "Bunny-Wunnies Freak Out"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(Biobase)
Loading required package: BiocGenerics
Loading required package: parallel
Attaching package: 'BiocGenerics'
The following objects are masked from 'package:parallel':
clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
clusterExport, clusterMap, parApply, parCapply, parLapply,
parLapplyLB, parRapply, parSapply, parSapplyLB
The following objects are masked from 'package:stats':
IQR, mad, sd, var, xtabs
The following objects are masked from 'package:base':
Filter, Find, Map, Position, Reduce, anyDuplicated, append,
as.data.frame, basename, cbind, colnames, dirname, do.call,
duplicated, eval, evalq, get, grep, grepl, intersect, is.unsorted,
lapply, mapply, match, mget, order, paste, pmax, pmax.int, pmin,
pmin.int, rank, rbind, rownames, sapply, setdiff, sort, table,
tapply, union, unique, unsplit, which, which.max, which.min
Welcome to Bioconductor
Vignettes contain introductory material; view with
'browseVignettes()'. To cite Bioconductor, see
'citation("Biobase")', and for packages 'citation("pkgname")'.
> library(TypeInfo)
> typeInfo( copyEnv ) <-
+ SimultaneousTypeSpecification(
+ TypedSignature(
+ oldEnv = "environment" ,
+ newEnv = "environment" ,
+ all.names = "logical"
+ ),
+ returnType = "vector")
>
> proc.time()
user system elapsed
1.17 0.07 1.23
|
TypeInfo.Rcheck/tests_i386/copySubstitute.Rout
R version 4.0.3 (2020-10-10) -- "Bunny-Wunnies Freak Out"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: i386-w64-mingw32/i386 (32-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(TypeInfo)
> require(Biobase)
Loading required package: Biobase
Loading required package: BiocGenerics
Loading required package: parallel
Attaching package: 'BiocGenerics'
The following objects are masked from 'package:parallel':
clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
clusterExport, clusterMap, parApply, parCapply, parLapply,
parLapplyLB, parRapply, parSapply, parSapplyLB
The following objects are masked from 'package:stats':
IQR, mad, sd, var, xtabs
The following objects are masked from 'package:base':
Filter, Find, Map, Position, Reduce, anyDuplicated, append,
as.data.frame, basename, cbind, colnames, dirname, do.call,
duplicated, eval, evalq, get, grep, grepl, intersect, is.unsorted,
lapply, mapply, match, mget, order, paste, pmax, pmax.int, pmin,
pmin.int, rank, rbind, rownames, sapply, setdiff, sort, table,
tapply, union, unique, unsplit, which, which.max, which.min
Welcome to Bioconductor
Vignettes contain introductory material; view with
'browseVignettes()'. To cite Bioconductor, see
'citation("Biobase")', and for packages 'citation("pkgname")'.
> copySubstitute <- Biobase::copySubstitute
>
>
> typeInfo( copySubstitute ) <-
+ IndependentTypeSpecification(
+ src = c("character", "connection"),
+ dest = expression(is(dest, class(src))),
+ symbolValues = "list" ,
+ symbolDelimiter = expression(is.character(symbolDelimiter) &&
+ length(symbolDelimiter) == 1 &&
+ all(nchar(symbolDelimiter) == 1)),
+ allowUnresolvedSymbols = "logical" ,
+ recursive = "logical" ,
+ removeExtension = "character",
+ returnType = "NULL")
>
>
> infile = tempfile()
> outfile = tempfile()
>
> writeLines(text=c("We will perform in @WHAT@:",
+ "So, thanks to @WHOM@ at once and to each one,",
+ "Whom we invite to see us crown'd at @WHERE@."),
+ con = infile)
>
> ## create the symbol table
> z = list(WHAT="measure, time and place", WHOM="all", WHERE="Scone")
>
> ## run copySubstitute
> copySubstitute(infile, outfile, z)
NULL
>
> cat("Next call should be an error\n")
Next call should be an error
> ## should be caught, but is not
> tryCatch({
+ copySubstitute(123, outfile, z);
+ stop("should have caught that!")
+ }, error=function(err) {})
NULL
>
> proc.time()
user system elapsed
1.00 0.03 1.01
|
TypeInfo.Rcheck/tests_x64/copySubstitute.Rout
R version 4.0.3 (2020-10-10) -- "Bunny-Wunnies Freak Out"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(TypeInfo)
> require(Biobase)
Loading required package: Biobase
Loading required package: BiocGenerics
Loading required package: parallel
Attaching package: 'BiocGenerics'
The following objects are masked from 'package:parallel':
clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
clusterExport, clusterMap, parApply, parCapply, parLapply,
parLapplyLB, parRapply, parSapply, parSapplyLB
The following objects are masked from 'package:stats':
IQR, mad, sd, var, xtabs
The following objects are masked from 'package:base':
Filter, Find, Map, Position, Reduce, anyDuplicated, append,
as.data.frame, basename, cbind, colnames, dirname, do.call,
duplicated, eval, evalq, get, grep, grepl, intersect, is.unsorted,
lapply, mapply, match, mget, order, paste, pmax, pmax.int, pmin,
pmin.int, rank, rbind, rownames, sapply, setdiff, sort, table,
tapply, union, unique, unsplit, which, which.max, which.min
Welcome to Bioconductor
Vignettes contain introductory material; view with
'browseVignettes()'. To cite Bioconductor, see
'citation("Biobase")', and for packages 'citation("pkgname")'.
> copySubstitute <- Biobase::copySubstitute
>
>
> typeInfo( copySubstitute ) <-
+ IndependentTypeSpecification(
+ src = c("character", "connection"),
+ dest = expression(is(dest, class(src))),
+ symbolValues = "list" ,
+ symbolDelimiter = expression(is.character(symbolDelimiter) &&
+ length(symbolDelimiter) == 1 &&
+ all(nchar(symbolDelimiter) == 1)),
+ allowUnresolvedSymbols = "logical" ,
+ recursive = "logical" ,
+ removeExtension = "character",
+ returnType = "NULL")
>
>
> infile = tempfile()
> outfile = tempfile()
>
> writeLines(text=c("We will perform in @WHAT@:",
+ "So, thanks to @WHOM@ at once and to each one,",
+ "Whom we invite to see us crown'd at @WHERE@."),
+ con = infile)
>
> ## create the symbol table
> z = list(WHAT="measure, time and place", WHOM="all", WHERE="Scone")
>
> ## run copySubstitute
> copySubstitute(infile, outfile, z)
NULL
>
> cat("Next call should be an error\n")
Next call should be an error
> ## should be caught, but is not
> tryCatch({
+ copySubstitute(123, outfile, z);
+ stop("should have caught that!")
+ }, error=function(err) {})
NULL
>
> proc.time()
user system elapsed
1.18 0.10 1.28
|