-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathutils.R
More file actions
48 lines (46 loc) · 1.59 KB
/
utils.R
File metadata and controls
48 lines (46 loc) · 1.59 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# These vignettes require an oauth2 flow and therefore cannot be built as
# part of the normal package build mechanism.
#
# Instead we use this internal helper function tobuild them manually and
# check in the rendered results to inst/doc in the package.
knitAllVignettes <- function() {
library(knitr)
opts_chunk$set(error=FALSE)
if(FALSE == grepl('doc$', getwd())) {
stop("be sure to setwd('PATH/TO/inst/doc') before running this command.")
}
lapply(c("BigQueryIntroduction.Rmd",
"BCGSC_microRNA_expression.Rmd",
"Copy_Number_segments.Rmd",
"creating_cohort_gene_expression_matrices.Rmd",
"Creating_TCGA_cohorts_part_1.Rmd",
"Creating_TCGA_cohorts_part_2.Rmd",
"DESeq2_tutorial.Rmd",
"DNA_Methylation.Rmd",
"ExpressionandMethylationCorrelation.Rmd",
"ExpressionandProteinCorrelation.Rmd",
"GenomicAndExpression_T_test.Rmd",
"Protein_expression.Rmd",
"Somatic_Mutations.Rmd",
"TCGA_Annotations.Rmd",
"UNC_HiSeq_mRNAseq_gene_expression_RSEM.Rmd",
"Working_With_Barcode_Lists.Rmd"
), function(rmd) {
knitr::purl(rmd, documentation=2)
knitr::knit(rmd)
knitr::knit2html(rmd)
}
)
}
# last comment.
knitOneVignette <- function(rmd) {
# knit one .rmd file.
library(knitr)
opts_chunk$set(error=FALSE)
if(FALSE == grepl('doc$', getwd())) {
stop("be sure to setwd('PATH/TO/inst/doc') before running this command.")
}
knitr::purl(rmd, documentation=2)
knitr::knit(rmd)
knitr::knit2html(rmd)
}