a4Reporting.Rcheck/tests_i386/test.annotationTable.Rout
R version 3.5.3 (2019-03-11) -- "Great Truth"
Copyright (C) 2019 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.
> # test annotationTable functionality
>
> library(a4Reporting)
Loading required package: annaffy
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, colMeans, colSums, colnames,
dirname, do.call, duplicated, eval, evalq, get, grep, grepl,
intersect, is.unsorted, lapply, lengths, mapply, match, mget,
order, paste, pmax, pmax.int, pmin, pmin.int, rank, rbind,
rowMeans, rowSums, 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")'.
Loading required package: GO.db
Loading required package: AnnotationDbi
Loading required package: stats4
Loading required package: IRanges
Loading required package: S4Vectors
Attaching package: 'S4Vectors'
The following object is masked from 'package:base':
expand.grid
Attaching package: 'IRanges'
The following object is masked from 'package:grDevices':
windows
Loading required package: KEGG.db
KEGG.db contains mappings based on older data because the original
resource was removed from the the public domain before the most
recent update was produced. This package should now be considered
deprecated and future versions of Bioconductor may not have it
available. Users who want more current data are encouraged to look
at the KEGGREST or reactome.db packages
>
> ## some dummy data
> set.seed(123)
> dData <- data.frame(someSymbol = LETTERS[1:5],
+ accessionNumber =
+ c("X83928", "V00540", "U21090", "L38487", "M34057"),
+ floats = rnorm(5))
>
> at <- annotationTable(displayData = dData,
+ displayCols = list(accessionNumber = "EntrezId"))
>
> at
annotationTable with hyperlink annotation for columns:
someSymbol, accessionNumber, floats
someSymbol accessionNumber floats
1 A X83928 -0.56047565
2 B V00540 -0.23017749
3 C U21090 1.55870831
4 D L38487 0.07050839
5 E M34057 0.12928774
>
> xat <- xtable(at, caption = "Example LaTeX table with Hyperlinks", digits = 3)
>
> print(xat, include.rownames = FALSE) # OK
% latex table generated in R 3.5.3 by xtable 1.8-3 package
% Sat Apr 13 00:26:27 2019
\begin{table}[ht]
\centering
\begin{tabular}{llr}
\hline
someSymbol & accessionNumber & floats \\
\hline
A & \href{http://www.ncbi.nlm.nih.gov/gene/X83928}{X83928} & -0.560 \\
B & \href{http://www.ncbi.nlm.nih.gov/gene/V00540}{V00540} & -0.230 \\
C & \href{http://www.ncbi.nlm.nih.gov/gene/U21090}{U21090} & 1.559 \\
D & \href{http://www.ncbi.nlm.nih.gov/gene/L38487}{L38487} & 0.071 \\
E & \href{http://www.ncbi.nlm.nih.gov/gene/M34057}{M34057} & 0.129 \\
\hline
\end{tabular}
\caption{Example LaTeX table with Hyperlinks}
\end{table}
>
>
> proc.time()
user system elapsed
2.75 0.15 2.90
|
a4Reporting.Rcheck/tests_x64/test.annotationTable.Rout
R version 3.5.3 (2019-03-11) -- "Great Truth"
Copyright (C) 2019 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.
> # test annotationTable functionality
>
> library(a4Reporting)
Loading required package: annaffy
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, colMeans, colSums, colnames,
dirname, do.call, duplicated, eval, evalq, get, grep, grepl,
intersect, is.unsorted, lapply, lengths, mapply, match, mget,
order, paste, pmax, pmax.int, pmin, pmin.int, rank, rbind,
rowMeans, rowSums, 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")'.
Loading required package: GO.db
Loading required package: AnnotationDbi
Loading required package: stats4
Loading required package: IRanges
Loading required package: S4Vectors
Attaching package: 'S4Vectors'
The following object is masked from 'package:base':
expand.grid
Attaching package: 'IRanges'
The following object is masked from 'package:grDevices':
windows
Loading required package: KEGG.db
KEGG.db contains mappings based on older data because the original
resource was removed from the the public domain before the most
recent update was produced. This package should now be considered
deprecated and future versions of Bioconductor may not have it
available. Users who want more current data are encouraged to look
at the KEGGREST or reactome.db packages
>
> ## some dummy data
> set.seed(123)
> dData <- data.frame(someSymbol = LETTERS[1:5],
+ accessionNumber =
+ c("X83928", "V00540", "U21090", "L38487", "M34057"),
+ floats = rnorm(5))
>
> at <- annotationTable(displayData = dData,
+ displayCols = list(accessionNumber = "EntrezId"))
>
> at
annotationTable with hyperlink annotation for columns:
someSymbol, accessionNumber, floats
someSymbol accessionNumber floats
1 A X83928 -0.56047565
2 B V00540 -0.23017749
3 C U21090 1.55870831
4 D L38487 0.07050839
5 E M34057 0.12928774
>
> xat <- xtable(at, caption = "Example LaTeX table with Hyperlinks", digits = 3)
>
> print(xat, include.rownames = FALSE) # OK
% latex table generated in R 3.5.3 by xtable 1.8-3 package
% Sat Apr 13 00:26:31 2019
\begin{table}[ht]
\centering
\begin{tabular}{llr}
\hline
someSymbol & accessionNumber & floats \\
\hline
A & \href{http://www.ncbi.nlm.nih.gov/gene/X83928}{X83928} & -0.560 \\
B & \href{http://www.ncbi.nlm.nih.gov/gene/V00540}{V00540} & -0.230 \\
C & \href{http://www.ncbi.nlm.nih.gov/gene/U21090}{U21090} & 1.559 \\
D & \href{http://www.ncbi.nlm.nih.gov/gene/L38487}{L38487} & 0.071 \\
E & \href{http://www.ncbi.nlm.nih.gov/gene/M34057}{M34057} & 0.129 \\
\hline
\end{tabular}
\caption{Example LaTeX table with Hyperlinks}
\end{table}
>
>
> proc.time()
user system elapsed
3.03 0.23 3.25
|