comparison help/help-scripts/.Rhistory @ 0:8b26eeb2da29 draft

planemo upload commit fb90aafc93e5e63acfcdac4c27cfd865cdf06c5a-dirty
author nturaga
date Tue, 19 Apr 2016 11:11:16 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:8b26eeb2da29
1 packageExpand = function(packagelist,fl) {
2 res = NULL
3 for (i in c(1:length(packagelist))) {
4 s = packagelist[i]
5 ls = nchar(s)
6 spos = which(substr(fl,1,ls) == s,arr.ind=T)
7 lspos = length(spos)
8 if (lspos > 0)
9 {
10 fullname = fl[spos]
11 if (grepl('*.gz',fullname)) {
12 row = paste(ps,fullname,pe,sep='')
13 res = append(res,row)
14 }
15 }
16 }
17 return(res)
18 }
19 getPackages = function(packs)
20 {
21 packages = unlist(tools::package_dependencies(packs, available.packages(),
22 which=c("Depends", "Imports"), recursive=TRUE))
23 packages = union(packs, packages)
24 packages
25 }
26 packageExpand(c("minfi"))