RSelenium::rsDriver() not working as expected.

Hii @HanOostdijk,
Thank you so much for replying. I'm using Ubuntu 18.04 and it didn't throw any error like that.
I literally just found the thing which was causing the issue.
RSelenium's rsDriver uses wdman::selenium() to start the server.
This was the output:

> wdman::selenium()
checking Selenium Server versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
Creating directory: /home/lazycipher/.local/share/binman_seleniumserver/generic/3.141.59
Downloading binary: https://www.googleapis.com/download/storage/v1/b/selenium-release/o/3.141%2Fselenium-server-standalone-3.141.59.jar?generation=1542184006...

Error in curl::curl_fetch_disk(url, x$path, handle = handle) : 
  Unrecognized content encoding type. libcurl understands deflate, gzip content encodings.

wdman::selenium()
checking Selenium Server versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
Creating directory: /home/lazycipher/.local/share/binman_seleniumserver/generic/4.0.0-alpha-1
Downloading binary: https://www.googleapis.com/download/storage/v1/b/selenium-release/o/4.0%2Fselenium-server-standalone-4.0.0-alpha-1.jar?generation=1556122...

Error in curl::curl_fetch_disk(url, x$path, handle = handle) : 
  Unrecognized content encoding type. libcurl understands deflate, gzip content encodings.

> wdman::selenium()
checking Selenium Server versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
Creating directory: /home/lazycipher/.local/share/binman_seleniumserver/generic/4.0.0-alpha-2
Downloading binary: https://www.googleapis.com/download/storage/v1/b/selenium-release/o/4.0%2Fselenium-server-standalone-4.0.0-alpha-2.jar?generation=1562016...

Error in curl::curl_fetch_disk(url, x$path, handle = handle) : 
  Unrecognized content encoding type. libcurl understands deflate, gzip content encodings.

sel <- wdman::selenium()
checking Selenium Server versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
checking chromedriver versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
checking geckodriver versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
checking phantomjs versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
>

I tried running the same thing twice more and got the same outputs but with a small difference. It was the version of selenium which was different each time.
The 4th time I ran the same command to start the server and no download process shows up. Then I checked the log and found that the jar was corrupted.

 sel$log()
$stderr
[1] "Error: Invalid or corrupt jarfile /home/lazycipher/.local/share/binman_seleniumserver/generic/4.0.0-alpha-2/selenium-server-standalone-4.0.0-alpha-2.jar"

$stdout
character(0)

> 

Now, I downloaded the jar from the official website and placed inside that directory and it worked perfectly. One more thing was that I specified a version to use in order to avoid alpha releases.

It worked but still I couldn't understand why it's happening!