Closed coatless closed 5 years ago
@wch thanks. I'll add in a version check.
@wch I've added in the version check. To do so, I've created three internal functions:
phantomjs_cmd_result()
phantom_run()
function.phantom_run()
's STDOUT information instead of only displaying it on console.phantomjs_version()
path/to/bin/phantom --version
obtained under phantomjs_cmd_result()
is_phantomjs_version_latest()
@wch ready for round 3.
@wch let's try round 4?
Thanks!
This PR implements the PhantomJS installation check as described in #25 by:
is_phantomjs_installed()
function that returnsTRUE
/FALSE
if PhantomJS is installed or not.install_phantomjs()
to includeforce
, which controls whether PhantomJS will be installed or not if it already is present on the user's computer.