Error in getGEO command in GEOquery - r

I`m running the following commands to get the data from GEO
library(GEOquery)
gset <- getGEO("GSE9476", GSEMatrix =TRUE, AnnotGPL=TRUE)
But, faced the following error
https://ftp.ncbi.nlm.nih.gov/geo/series/GSE9nnn/GSE9476/matrix/
Error in function (type, msg, asError = TRUE) :
error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version

Related

How to resolve this error "Error in physical_devices[[1]] : subscript out of bounds" in R?

I have the following code but im getting an error when I run this:
library(keras)
library(tensorflow)
tensorflow::tf_version()
physical_devices = tf$config$list_physical_devices('GPU')
tf$config$experimental$set_memory_growth(physical_devices[[1]],T)
the error im getting
> tf$config$experimental$set_memory_growth(physical_devices[[1]],T)
Error in physical_devices[[1]] : subscript out of bounds

How do I deal with Connection refused error in rvest?

This is my code:
pkgs <- c("rvest", "urltools")
sapply(pkgs, library, character.only = T)
name <- 'cry'
url1 = URLencode(paste0('https://www.google.co.za/search?q=',name))
htmlpage <- html_session(url1)
Unfortunately, I get the following error:
Error in curl::curl_fetch_memory(url, handle = handle) :
Failed to connect to www.google.co.za port 443: Connection refused
What can I do about the error?

Error in function (type, msg, asError = TRUE) : Could not resolve host: datamarket.accesscontrol.windows.net

I am trying to convert a text from French to English using translate
function in translateR package. I am using MS translator. Could
anybody help me to solve this? I am new to R language and don't have
much expertise into this.
This code:
library(translateR)
res <- translate(content.vec = c("Hello world.", "This is a test."),
microsoft.client.id = "143bc77b-80fd-4a71-ae9d-7e37373fd84c",
microsoft.client.secret = "biAW515)[jpbulULGTK11$+",
source.lang = "en",
target.lang = "de")
res
Throws error:
Error in function (type, msg, asError = TRUE) :
Could not resolve host: datamarket.accesscontrol.windows.net
In addition: Warning message:
The content appears to be in MIDDLE_FRISIAN. However, the language code you provided suggests that
the text is in ENGLISH. If you entered the wrong language code, stop the process. Otherwise,
translateR will treat the text as ENGLISH.

Error in translateR package

I am trying to convert a text from French to English using translate function in translateR package. I am using MS translator. Could anybody help me to solve this? I am new to R language and don't have much expertise into this.
This code:
text1 <- "joyeux Noël"
translate(content.vec=text1, microsoft.client.id='xxxxxx',
microsoft.client.sec‌ret = 'ZlZ39GooG6w1oiDlUgPcUQXGq7B+jCfchdrL9h0ebz8=',
source.lang = 'fr', target.lang = '‌​en')
Throws:
Error in fromJSON(postForm("https://datamarket.accesscontrol.windows.net/v2/OAuth2-13", :
error in evaluating the argument 'content' in selecting a method for function 'fromJSON': Error in function (type, msg, asError = TRUE) :
Failed to connect to datamarket.accesscontrol.windows.net port 443: Connection refused

Move remote file in SFTP using R and RCurl

I need to rename a remote file once I download them. I tried to use the following command, but its not working.
input = getURL(url, userpwd="user:password", postquote=c("/inputs/", "RNFR abc.xml", "RNTO abc.xml_processed"))
This is throwing the error message
Error in function (type, msg, asError = TRUE) : Unknown SFTP command
Please somebody suggest me some insight into this.
Update
I tried with the complete paths like,
input = getURL("url/abc.xml", userpwd="user:password", postquote=c("RNFR /inputs//abc.xml", "RNTO /inputs/abc.xml_processed"))
Still same error Error in function (type, msg, asError = TRUE) : Unknown SFTP command.

Resources