[R] Correctly executing system code using R in Ubuntu server
Christofer Bogaso
bog@@o@chri@tofer @ending from gm@il@com
Mon Jun 25 23:04:21 CEST 2018
Hi,
I am curious on how to correctly run System code with R under Ubuntu. I
tried to execute below 2 lines of code using system() functions in Ubuntu
server, however could not achieve the desired result.
system('Xvfb :10 -ac &')
system('export DISPLAY=:10')
System parameters:
> Sys.info()
sysname
"Linux"
release
"4.4.0-128-generic"
version
"#154-Ubuntu SMP Fri May 25 14:15:18 UTC 2018"
nodename
"ubuntu-s-2vcpu-4gb-blr1-01"
machine
"x86_64"
login
"root"
user
"root"
effective_user
"root"
Background:
I use RSelenium package to perform various testing using web-browser. I
have installed firefox to do the same, however to make RSelenium work, it
requires display parameter as guided in below link:
https://medium.com/@griggheo/running-selenium-webdriver-tests-using-firefox-headless-mode-on-ubuntu-d32500bb6af2
I want to set those parameters through R, each time I start R in Ubuntu
server.
Appreciate for any pointer.
Thanks,
[[alternative HTML version deleted]]
More information about the R-help
mailing list