I am using R version 3.0.3. while running
library(devtools)
install_github("kassambara/factoextra")
Iam getting below error:
Downloading github repo kassambara/factoextra#master
Error in function (type, msg, asError = TRUE) :
Failed to connect to api.github.com port 443: Timed out
Can anyone please tell me how to install this package?
My guess would be that you are behind a proxy that blocks https or something like that. Just retry from another location and see if that fixes the issue. Or talk to your local system administrator and fix the issue.
It could also be a temporary github problem, in which case retrying at a later moment will fix the issue.
Related
Please I am trying to run mlflow code in R after having installed it. However, after loading the library with library(mlflow) and I run mlflow_log_params("foo",42) I get the error message below printed in my console:
Error in rethrow_call(c_processx_exec, command, c(command, args), pty, :
Command 'C:/Users/IFEANYI/AppData/Local/r-miniconda/envs/r-mlflow-1.19.0/mlflow' not found #win/processx.c:982 (processx_exec)
I also get the same error message when I run mlflow_ui(). Please was there something I ought to have done during installation failure of which is affecting its functionality? Do I need to install and load the processx library in order for mlflow to run on my Windows10 machine? I really hope I can get advice to help me because I want to use mlflow in my machine learning projects. Thanks in advance of your generous help.
The error should disappear when setting MLFLOW_BIN system variable (Windows) to mlflow cli executable : "....conda\envs\r-mlflow-1.24.0\Scripts\mlflow.exe".
If it works please mark the problem as resolved.
Unfortunately, you will get next error "Error in wait_for(function() mlflow_rest("experiments", "list", client = client)" for which I cannot find the solution
I am trying to install an package from behind a corporate (fire)wall using devtools:
library(devtools)
devtools::install_github("aryoda/tryCatchLog")
I get an error message:
Error: Failed to install 'unknown package' from GitHub: schannel:
next InitializeSecurityContext failed: SEC_E_UNTRUSTED_ROOT (0x80090325)
- The certification chain was issued by an entity that is unreliable.
The reason seems to be the used curl package which produces the same error with:
library(curl)
curl::curl_fetch_memory("https://httpbin.org/get")
How can I fix this?
PS: I am using MS Windows 10
I have found the solution:
The internet connection does only work within curl if you set the correct HTTPS_PROXY:
# insert your correct domain name and IP port here
Sys.setenv(https_proxy = "http://httpproxy.mycompany.com:1234")
This devtools issue comment did help me:
https://github.com/r-lib/devtools/issues/1610#issuecomment-333344548
Update 1:
This is a generic solution to set the HTTP(S)_PROXY in R:
requires(curl)
requires(devtools)
proxy <- curl::ie_get_proxy_for_url("https://www.qwant.com/")
Sys.setenv(https_proxy=proxy)
# Sys.setenv(http_proxy=proxy) # you could also set an HTTP proxy
devtools::install_github("aryoda/tryCatchLog") # should work now
You could add this line to your Rprofile.site file (in R/etc folder)
I try to install rword2vec :
library(devtools)
install_github("mukul13/rword2vec")
But I get this error message :
Error in curl::curl_fetch_disk(url, x$path, handle = handle) :
Couldn't resolve host name
Can you help me please to resolve this problem ?
Thank you
I ran into this same issue with other packages/libraries from GitHub while on a work network. I resolved the issue by switching to another internet network (e.g., my home internet). I was able to download the packages and install the packages.
I am trying to install the BTYplus package in R.
devtools::install_github("mplatzer/BTYDplus", dependencies=TRUE)
library(BTYDplus)
demo(package="BTYDplus")
But it gives me the following error:
Downloading github repo mplatzer/BTYDplus#master
Error in curl::curl_fetch_memory(url, handle = handle) :
Couldn't connect to server
Did anyone had a similar issue when installing packages on R?
You can download the library externally and then import it to R:
Download from: https://github.com/mplatzer/BTYDplus
import from: Tools > Install Packages/ Package Archive File(.zip; .tar.gz)
Setting the proxy did work for me. Here is how I have done that:
library(httr)
set_config(use_proxy(url='http://my.proxy', port, username, password))
(and fill in your own url, port, username and password. Username and password were not necessary for me)
For me it was not proxy problem, instead the following lines solved my problem:
library(httr)
set_config(config(ssl_verifypeer = 0L))
Found it here.
I have installed R 3.0.2 and package KEGGREST. While using it's command, I get the following error
Error in function (type, msg, asError = TRUE) : couldn't connect to
host
I can very well install package from internet after using --internet2 option, which uses proxy details from Internet explorer.
Please help.
Thanks in advance
httr uses a different method to connect to the internet: you need to explicitly set the proxy using the following command:
set_config(use_proxy(url='your.proxy.url',port,username,password))
See
http://www.inside-r.org/packages/cran/httr/docs/use_proxy
Solution. How to install_github when there is a proxy
For more details