This page was generated on 2018-04-12 13:34:17 -0400 (Thu, 12 Apr 2018).
a4Reporting 1.26.0 Tobias Verbeke , Willem Ligtenberg
Snapshot Date: 2018-04-11 16:45:18 -0400 (Wed, 11 Apr 2018) |
URL: https://git.bioconductor.org/packages/a4Reporting |
Branch: RELEASE_3_6 |
Last Commit: cce2015 |
Last Changed Date: 2017-10-30 12:39:33 -0400 (Mon, 30 Oct 2017) |
| malbec1 | Linux (Ubuntu 16.04.1 LTS) / x86_64 | OK | OK | OK | | |
tokay1 | Windows Server 2012 R2 Standard / x64 | OK | OK | OK | OK | |
veracruz1 | OS X 10.11.6 El Capitan / x86_64 | OK | OK | [ OK ] | OK | |
R version 3.4.4 (2018-03-15) -- "Someone to Lean On"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin15.6.0 (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, cbind, colMeans, colSums, colnames, 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
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.4.4 by xtable 1.8-2 package
% Thu Apr 12 00:08:08 2018
\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.813 0.135 3.987