if (FALSE) {
## Convert all .pdf graphics in the "figSW" directory
## into .png files and put the files in a "png" subfolder.
convert.g(path="figSW", from="pdf", to="png")
## Same, but convert to .jpg files.
convert.g(path="figSW", to="jpg")
## convert file "example.jpg" in current path to ".pdf"
## and put it in same folder.
convert.g(fileroot = "example", from = "jpg", create.path=FALSE)
}
Run the code above in your browser using DataLab