forked from GenABEL-Project/GenABEL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
generate_documentation.R
50 lines (49 loc) · 1.3 KB
/
generate_documentation.R
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
49
50
roxy_files <- c(
"add.phdata.R",
#"annotation",
"arrange_probabel_phe.R",
"blurGenotype.R",
"checkPackageVersionOnCRAN.R",
"cocohet.R",
"del.phdata.R",
"egscore.R",
"estlambda.R",
"export.plink.R",
"extract.annotation.impute.R",
"extract.annotation.mach.R",
"findRelatives.R",
"VIFGC.R",
"VIFGC_ovdom.R",
"GenABEL.R",
"generateOffspring.R",
"getLogLikelihoodGivenRelation.R",
"grammar.R",
"hom.R",
"ibs.R",
"impute2databel.R",
"impute2mach.R",
#"LiLogCC.R",
#"LiLog.R",
"mach2databel.R",
"makeTransitionMatrix.R",
#"phdata.R",
"PGC.R",
"polygenic.R",
"polygenic_hglm.R",
"qtscore.R",
"recodeChromosome.R",
"reconstructNPs.R",
"sortmap.internal.R"
#,
#"summary.scan.gwaa.R"
)
library(roxygen2)
setwd("R")
unlink("GenABEL",recursive=TRUE)
package.skeleton("GenABEL",code_files=roxy_files)
roxygenize("GenABEL",roxygen.dir="GenABEL",copy=F,unlink=F)
unlink("GenABEL/man/GenABEL-package.Rd",recursive=TRUE)
lstf <- paste("GenABEL/man/",list.files("GenABEL/man/"),sep="")
lstf
file.copy(lstf,"../man/",overwrite=TRUE)
unlink("GenABEL",recursive=TRUE)