start_session() from RWebdriver package doesn't work - r

I've installed package from git_hub under RStudio by:
install_github(repo = "Rwebdriver",username = "crubba")
Downloaded and started Selenium server v.3.3.1 from the command prompt by:
>java -jar seleniumXXX.jar
When I'm trying to run this command under RStudio:
start_session(root = "http://localhost:4444/wd/hub/", browser ="firefox")
I'm getting an error:
Error in serverDetails$value[[1]] : subscript out of bounds
I haven't any idea what is it.
Is anybody help me?
RStudio Version 0.99.903
R version 3.3.3
RWebdriver Version 0.1
OS - Windows 10
selenium server version 3.3.1
Java Version 8 update 121 (build 1.8.0_121-b13)

Related

GnuTLS Error -50: Cannot install packages from Github in Rstudio?

The following lines prompt an error (which differs from this question):
library(devtools)
install_github("StatsWithR/statsr") # the same for any other open repos
The error is this:
Error: Failed to install 'unknown package' from GitHub:
Error -50 setting GnuTLS cipher list starting with +VERS-TLS1.3
Then I wanted to work around the problem caused by devtools, so I tried githubinstall, but the error became this:
Error in curl::curl_download(input, tmpFile, mode = "wb", quiet = !showProgress) :
Error -50 setting GnuTLS cipher list starting with +VERS-TLS1.3
It seems obvious that the issue is caused by GnuTLS and I found a similar thread: git/jenkins TLS issue, but I cannot find some hints there.
I also tried install_url, install_local, and install_git, but all failed.
Here is the information of the R I recently upgraded from 3.4.4(2018):
platform x86_64-pc-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major 4
minor 1.2
year 2021
month 11
day 01
svn rev 81115
language R
version.string R version 4.1.2 (2021-11-01)
nickname Bird Hippie
I have been stuck with devtools and install_github. What can I try next?
I installed the r-base and Rstudio using apt install in an existing container, and the default settings(the default r version is 3.4.4) caused the issues I met, then I purged the r environment and created a new one in a new Docker container following this blog: Running RStudio Server with Docker.

R help error : Error in startDynamicHelp(TRUE)

I am new to R and getting below error message when I run ?mpg command in R console.
starting httpd help server ...Error in startDynamicHelp(TRUE) : internet routines cannot be loaded
I am running R version 3.4.1 on mac os Sierra.
Any suggestion would be appreciated.
It might be a conflict between 64-bit and 32-bit versions of R.
Have you tried this answer
Also, try running R.Version() to check the version and sys details.

Error downloading previous package version in RStudio even though manual download works

I am trying to follow the instructions from RStudio to install an older version of ggplot2 with devtools::install_version. However, I am getting the following error:
> devtools::install_version("ggplot2", version = "2.1.0", repos = "https://cran.r-project.org")
Downloading package from url: https://cran.r-project.org/src/contrib/Archive/ggplot2/ggplot2_2.1.0.tar.gz
/usr/bin/tar: Cannot execute remote shell: No such file or directory
/usr/bin/tar: C\:\\Users\\..\RtmpmqySfr\\file75c16051e90.tar.gz: Cannot open: I/O error
/usr/bin/tar: Error is not recoverable: exiting now
Error: Does not appear to be an R package (no DESCRIPTION)
My R version:
R version 3.2.2 (2015-08-14)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
My RStudio version:
0.99.902
My devtools version:
devtools_1.12.0
I seem to be able to download the compressed package files directly by going to the URL found by devtools.
Why am I getting this error and how do I fix it?

Problems installing Slidify in RStudio

I am new to R-programming and I am trying to install Slidify and I am currently having a problem. I am running on the below version of RStudio:
R version 3.2.3 (2015-12-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
I am using the below code to install Slidify:
install_github("slidify", "ramnathv")
install_github("slidifyLibraries", "ramnathv")*
I get the following error:
'C:\Program' is not recognized as an internal or external command, operable program or batch file.
Error: Command failed (1)
In addition: Warning message:
Username parameter is deprecated. Please use ramnathv/slidifyLibraries
I have also tried the below code to install Slidify:
pkgs <- c('ramnathv/slidifyLibraries', 'ramnathv/slidify')
devtools::install_github(pkgs)*
and I get the following error:
Error: Command failed (1)
Does anyone have experience installing Slidify?
1) install_github() function is in devtools package, so first you have to install this package using install.packages("devtools").
2) Then load the library using
library(devtools)
3) Now use your code
install_github("slidify", "ramnathv")
install_github("slidifyLibraries", "ramnathv")
It will work properly.

RHive installation : Error in rhive.connect

I was installing rhive on my cluster. I followed below link for installation.
https://github.com/nexr/RHive
Everything went smooth except last line. When i tried to connect r with hive server , it is throwing below exception.
> library(RHive)
Loading required package: rJava
Loading required package: Rserve
> rhive.connect("127.0.0.1", 10000, hiveServer2)
Error: java.lang.UnsupportedClassVersionError: org/apache/hadoop/conf/Configuration : Unsupported major.minor version 51.0
>
Java Version
java -version
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)
Does anyone has any clue here?
Issues got resolved when I changed my JAVA_HOME to jdk6. It looks like jdk7 is not supported.
echo $JAVA_HOME
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.36.x86_64/jre

Resources