Comments (9)
Almost the same, I tried to follow the blog post and reproduce the example, but when trying to run the install_splash, I have the following error
Error: Failed to execute '' (No such file or directory)
Same OS as @fzenoni, Ubuntu 16.04, latest version of R and RStudio
from splashr.
Cool. Thx for posting. I tested on a 16.04.1 system about an hour ago and it worked w/o a hitch. Can you provide a bit more detail on your respective setups? I can try to replicate in a Vagrant VM to see what I need to do to accommodate. In reality, it's a bit of code in wch/harbor
that's really the issue but I'm the maintainer on that now so the issue here is fine.
The code in question in harbor
is: https://github.com/wch/harbor/blob/master/R/localhost.R#L17-L28. It's not doing much, but from both reports I suspect there's something PATH
-related and it'd be gd to triage this to ensure smoother working of harbor
and any revdeps of it.
from splashr.
Thanks for you answer. I run on a virtual machine (VirtualBox) with Ubuntu 16.04.2 LTS 64 bit.
RStudio Version 1.0.136
R version 3.2.3
Running echo $PATH
gives the following:
/home/fzenoni/anaconda2/bin:/home/fzenoni/geckodriver:/home/fzenoni/anaconda3/bin:/home/fzenoni/bin:/home/fzenoni/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
Are you looking for other specific information?
from splashr.
So i tried to figure out what's going on, by using the terminal.
-
docker_run
usedocker_cmd
, which builds the call thatsys::exec_internal
executes afterwards. The help file for docker in the command line states that a proper call should be done using 'run', like 'docker run ...'. I might be wrong, but it seems that the function doesn't do that. -
Once I manually add 'run' to the command (e.g.
docker run --name='test' 'hrbrmstr/splashttpd' -p 5023:5023 -p 8050:8050 -p 8051:8051
), I get the following error:
docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.26/containers/create?name=test: dial unix /var/run/docker.sock: connect: permission denied.
See 'docker run --help'.
If I run the previous command as sudo, then it seems to be working (Which is pretty much the command line you specify in the overall description to start the docker)
So I'm a bit lost, I'm quite a newbie with dockers, but if we always have to execute them as sudo, that might be an issue to do that from R. :/
from splashr.
All right, I'm a noob. You can throw stuff at me, I deserved it. I didn't add myself as part of the docker group, since I was running everything using sudo.
https://docs.docker.com/engine/installation/linux/linux-postinstall/
@fzenoni try the following in terminal
sudo groupadd docker
sudo usermod -aG docker $USER
Then log out and log back in, and give it another try.
On another note, for me, splash is located at '0.0.0.0' instead of 'splash', using the default start_splash function.
(so to access splash, you need to use splash('0.0.0.0', 8050L) %>% stuff
from splashr.
@The-Dub It worked! Thanks a lot! I must share your mea culpa -- I haven't read enough documentation.
from splashr.
@hrbrmstr maybe add something about this on the harbor page description
I think this can be closed now
from splashr.
wow. #ty for poking at this! I will add that to the front-matter but will leave this open until i do.
from splashr.
in README now. #ty again!
from splashr.
Related Issues (20)
- Capture console output and uncaught JS errors HOT 2
- Error on Windows HOT 2
- Error in py_get_attr_impl(x, name, silent) : AttributeError: 'Client' object has no attribute 'api'
- unable to get splashr to render content HOT 1
- execute_lua() save_args/load_args arguments unclear
- Difficulty with installing and starting/stopping splashr within R?
- Difficulty rendering local html file
- Question about finding coords for splash_click
- is this project going to be high priority? HOT 5
- Error in render_html - Bad Gateway (HTTP 502)
- Scrolling HOT 1
- installation error HOT 5
- Web scraping with splashr fails with curl error after many successes
- Can't pull multiple pages HOT 5
- can't install splash from R command install_splash() HOT 3
- curl Recv failure: Connection reset by peer HOT 1
- Using http_post HOT 2
- how to set headers HOT 2
- splash_select function
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from splashr.