Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failure value: 127 #19

Closed
davidgohel opened this issue Mar 9, 2016 · 3 comments
Closed

failure value: 127 #19

davidgohel opened this issue Mar 9, 2016 · 3 comments

Comments

@davidgohel
Copy link

Hi,

This is a great tool! Thanks.

I am having an issue when using webshot function:

> webshot("https://www.r-project.org/", "r.png")
sh: ~/Library/Application Support/PhantomJS/phantomjs: No such file or directory
Error in webshot("https://www.r-project.org/", "r.png") : 
  webshot.js returned failure value: 127

In function phantom_run, if using the full path of phantomjs (/Users/username/.../phantomjs instead of ~/.../phantomjs), the function is working as expected.

KR,
David

> sessionInfo()
R version 3.2.3 (2015-12-10)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.11.3 (El Capitan)

locale:
[1] fr_FR.UTF-8/fr_FR.UTF-8/fr_FR.UTF-8/C/fr_FR.UTF-8/fr_FR.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] webshot_0.3.0.9000

loaded via a namespace (and not attached):
[1] magrittr_1.5 tools_3.2.3 
@wch
Copy link
Owner

wch commented Mar 9, 2016

It sounds like ~ is not being expanded. @yihui, perhaps this is because of the shQuote that was added?

@yihui yihui closed this as completed in 4ba6c1e Mar 9, 2016
@yihui
Copy link
Collaborator

yihui commented Mar 9, 2016

Thanks for the report! I just expanded ~. For OS X, I recommend you to install PhantomJS via Homebrew instead. It is easier to install and manage in the future.

@davidgohel
Copy link
Author

OK,
thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants