I'm trying Google Cloud for the first time for training a DNN model with using Keras in R.
The use of the cloudml_train()-function try to install a lot of libraries on the Google Cloud server, and there is an error that I can't go round:
master-replica-0 Installing BiocGenerics (0.20.0) ...
master-replica-0 curl: (22) The requested URL returned error: 404 Not Found
As I understand, it tries to install the BioGenerics library, but the path is wrong.
Any suggestion how to solve this?
Related
I am using the to_categorical function in KerasR and it throws an error message in RStudio which is this:
mnist_y <- to_categorical(mnist_y, 10)
Collecting package metadata (current_repodata.json): ...working... failed
CondaSSLError: OpenSSL appears to be unavailable on this machine. OpenSSL is required to
download and install packages.
Exception: HTTPSConnectionPool(host='conda.anaconda.org', port=443): Max retries exceeded with url: /conda-forge/win-64/current_repodata.json (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))
Error: Python not available
See reticulate::use_python() to set python path,
then use kerasR::keras_init() to retry
I am using R 4.2.1. Based on the error message, it seems that I have to install Python on my computer, and set the Python path? I am not an experienced user of Python.
I tried installing the package OpenSSL, but I am still getting the same error.
Any help is greatly appreciated. Many thanks.
I am struggling to get a package installation via "install.packages("packagename") working on a centOS server using the latest R-Release. The server was setup with R Studio Server Pro.
Internet access is working in general. Package download works also, but after the download, the final installation of the package fails with the following error code:
Error: 163:6: unexpected '/'
163: http:/
I already checked that no requests are blocked with our firewall/proxy. The installation fails from within R Studio, R sessions itself and with all users on the server. It also fails for the central library and the users personal libraries.
Do you have any ideas what the issue might be?
Thanks
Christoph
I am trying to run devtools::release to submit a R package I have written to CRAN and I get the following error message:
devtools::release()
Checking if synched with remote branch...
ERROR: Error in 'git2r_remote_fetch': unknown certificate check failure
I have been able to upload and download my package from GitHub without issues in the past, and the version of the package on my computer is up to date with the version on GitHub. The CMD checks on my computer throw up no issues. Can anyone advise what might be the issue?
This is most likely a security issue (see here; I'm guessing you're using Windows). I had a similar problem, and was being suddenly asked for passwords all the time. I was able to resolve it by downloading and installing the latest version of Git from here.
If you restart your R session, devtools should work properly with Github again.
I'm currently running R version 3.4.2 on Windows and have ggplot2 (via tidyverse) and sf package versions 3.4.2. I'm attempting to map spatial data using the ggplot2 sf kit.
When trying to run geom_sf, I receive an error: could not find function "geom_sf".
When I search the ggplot2 package using ls("package:ggplot2"), geom_sf is not listed in the library files.
I installed devtools and ran devtools::install_github("tidyverse/ggplot2"). However, I receive an error: Installation failed: Failed to connect to raw.githubusercontent.come port 443: Timed out. I assume the firewall at work is halting this connection.
To get around this, I tried downloading the zip manually from https://github.com/tidyverse/ggplot2 and running install.packages('ggplot2-master.zip', lib = 'C:/filepath') and receive the error: package 'ggplot2-master.zip' is not available (for R version 3.4.2). I was getting the same error before I updated from 3.4.1.
TLDR: I'm having the same issue as this user: Error when plotting sf object --- Error: could not find function "geom_sf"
but the solution does not work for me.
Does anyone see where I may be missing something? Or how to access this highly referenced (more streamlined) package?
If you downloaded from the URL you cited then the appropriate next step would be to execute this at the R session command line assuming your package is in the working directory:
install.packages('ggplot2', repo=NULL, lib = 'C:/filepath')
The .zip extension is implicit in trying to install from a binary windows file and you need to tell it NOT to attempt downloading from CRAN.
I'm trying to tie R to Twitter and everything I try has been failing. I've been looking at several links including the following: One, Two, Three
While those have led to more issues, I'm now looking at the links here and here to try some workarounds. I would have posted my question as a comment to either of these links but I don't have enough rep yet.
When I run the following code, I get the following error
Code:
library(base64enc)
library(RCurl)
library(httr)
set_config( config( ssl_verifypeer = 0L ) )
devtools::install_github("jrowen/twitteR", user="MY_USERNAME", password="MY_PASSWORD", ref = "oauth_httr_1_0")
Error:
WARNING: Rtools is required to build R packages, but is not currently installed.
Please download and install Rtools 3.3 from http://cran.r-project.org/bin/windows/Rtools/ and then run find_rtools().
Downloading GitHub repo jrowen/twitteR#oauth_httr_1_0
Error in download(dest, src, auth) : client error: (401) Unauthorized
Am I just completely missing something here in how to download this dev twitteR package? Does anyone have an idea on how to get past the 401 error?
Thanks,
Have you installed and sourced R tools in the session you are referencing above? You aren't getting a certificate error (were you before?) which suggests you don't have a certificate server you're running under as was the issue in some of your linked posts.
I would suggest the following steps to find your issue.
You may need the httpuv package which can be downloaded sourced with
install.packages('httpuv')
library('httpuv')
Sometimes the twitteR package needs an older version of httr to work correctly, depending on jrowen's (and hadley's) updates.
You may try installing the older version of httr
devtools::install_version("httr", version="0.6.0", repos="http://cran.us.r-project.org")
and restarting R and then trying your install again. Note that if you are on a 64-bit machine, you will probably have to install the most recent version of httr first, then install the older version.