## Not run:
# #save the absolute path to phantomJS by giving relative path
# install.phantom("./bin/phantomjs")
#
# #save the absolute path to phantomJS
# install.phantom("c:\phantomjs\bin\phantomjs")
#
# #convert JPEG to PDF
# convertGraph("./example.jpeg", "./example.pdf", path = "path to executable phantomJS" )
# ## End(Not run)
Run the code above in your browser using DataLab