Skip to content

Commit

Permalink
prepare slides and codes for machine learing training
Browse files Browse the repository at this point in the history
  • Loading branch information
gangchen committed May 1, 2013
1 parent e17631d commit a605829
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 9 deletions.
34 changes: 25 additions & 9 deletions R/genSlide.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,32 @@ genSlide <- function(name, subtitle="", secLogo=""){

print("knitr finished")
print("copying necessary files")
file.copy(paste(packagePath,"bgi-logo.png",sep=""), "bgi-logo.png")
file.copy(paste(packagePath,"context-specfic-mutation.pdf",sep=""), "context-specfic-mutation.pdf")
file.copy(paste(packagePath,"final-artwork.pdf",sep=""), "final-artwork.pdf")
file.copy(paste(packagePath,"worldmap.png",sep=""), "worldmap.png")
file.copy(paste(packagePath,"bgi-map.png",sep=""), "bgi-map.png")
file.copy(paste(packagePath,"spectrum.png",sep=""), "spectrum.png")

# copying BGI-TECH logo
# this picture should be used by all slides in this package
8 file.copy(paste(packagePath,"bgi-logo.png",sep=""), "bgi-logo.png")

# copying necessary files for R ploting traning slides
if(name == "plot"){
file.copy(paste(packagePath,"final-artwork.pdf",sep=""), "final-artwork.pdf")
file.copy(paste(packagePath,"worldmap.png",sep=""), "worldmap.png")
file.copy(paste(packagePath,"bgi-map.png",sep=""), "bgi-map.png")
file.copy(paste(packagePath,"spectrum.png",sep=""), "spectrum.png")
file.copy(paste(packagePath,"iheatmap.png",sep=""), "iheatmap.png")

print("xelatex is running")
system("xelatex slides.tex")
print("xelatex is running")
system("xelatex slides.tex")

file.remove(c("bgi-logo.png", "context-specfic-mutation.pdf", "worldmap.png", "bgi-map.png"))
}

# copying necessary files for machine learning training
if(name == "machineLearning"){

}

# copying necessary files for unitTesting training
if(name == "unitTesting"){

file.remove(c("bgi-logo.png", "context-specfic-mutation.pdf", "worldmap.png", "bgi-map.png"))
}
}
Binary file removed inst/slides/bgiR-plot/context-specfic-mutation.pdf
Binary file not shown.

0 comments on commit a605829

Please sign in to comment.