genderdata package unavailable for R 3.2.3 - r

When I try installing the package "genderdata" to R,
install.packages("genderdata")
I get the following error:
Warning in install.packages :
package ‘genderdata’ is not available (for R version 3.2.3)`
Is there any way around this?

I tried this in my version of R 3.1.1 and got the same error message as you. When I looked closer it also said:
package ‘genderdata’ is available as a source package but not as a binary
I searched around some more and came up with this which worked for me.
options(repos = c("http://packages.ropensci.org/", getOption("repos")))
install.packages("genderdata", repos = "http://packages.ropensci.org", type="source")
I got several warnings but it did install and can be loaded with
library(genderdata)

Try installing from a source that doesn't limit you based on your R version with devtools and github.
install.packages('devtools')
library(devtools)
install_github("ropensci/genderdata")
library(genderdata)

Related

Can't install 'usethis' package

I'm using R-4.1.1 and the last version of Rstudio.
My goal is to use the ggradar package but I cannot install it with install.packages because:
le package ‘ggradar’ is not available for this version of R
So I would like to install the application like this:
devtools::install_github("ricardo-bion/ggradar", dependencies=TRUE)
I managed to install devtools but when I try to:
library(devtools)
there is this error:
Error: le package ‘usethis’ nécessaire pour ‘devtools’, mais est introuvable
When I trying to install devtools with
install.packages("devtools",dependencies =TRUE)
it doesn't work. So finally, I try to install the package usethis
install.packages("usethis")
but I can't do it: I have a big error which ends with:
Warning in install.packages :
installation of package ‘usethis’ had non-zero exit status
Can you help me please?
I don't know the exact reason for your case, but things like this can happen as a result of an inconsistent package set. It is in general a good idea to update installed packages before installing new ones.
As you have seen, package usethis depends on devtools, see: https://CRAN.R-project.org/package=usethis that also shows that usethis is availabe for R 4.1.1.
In inconsistency already happened, i.a. due to an upgrade from R 4.1.0 or other installations, de-installation of the suspect packages, or just deletion of the user library can help in most cases.
How to do this depends on the operating system.

I can't install survminer package

I want to install surminer package but I see this code in R console
Warning in install.packages :
package ‘surminer’ is not available for this version of R
A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-package
How can i install surminer package?
have you tried installing via Github? (I'm guessing you mean survminer, not surminer)
library(devtools)
install_github('kassambara/survminer')

Not able to install TwitteR2Mongo Package in R

I am trying to install an R package for autonomous processing of Twitter data with the help of TwitteR2Mongo, but I'm getting the following error:
Warning in install.packages :
package ‘TwitteR2Mongo’ is not available (for R version 3.4.3)
package may not have been published to CRAN. but it builds from github for me on 3.4.3.
try
install.packages("devtools")
library(devtools)
install_github("ProjectTw/TwitteR2Mongo")

r error on installing colorspace for ggplot2

I am an r newbie and would appreciate some help installing ggplot2. I am using RStudio Version 0.98.1102. Please see error below.
install.packages("ggplot2")
runs fine
library("ggplot2")
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck =
vI[[i]]) : there is no package called ‘colorspace’ Error: package or
namespace load failed for ‘ggplot2’
install.packages("colorspace")
Installing package into ‘C:/Users/Jessica/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified) There is a binary version available (and
will be installed) but the source version is later: binary source
colorspace 1.2-4 1.2-5 trying URL
'...//cran.rstudio.com/bin/windows/contrib/3.1/colorspace_1.2-4.zip'
Warning in install.packages : cannot open: HTTP status was '404 Not
Found' Error in download.file(url, destfile, method, mode = "wb", ...)
: cannot open URL
'...://cran.rstudio.com/bin/windows/contrib/3.1/colorspace_1.2-4.zip'
Warning in install.packages : download of package ‘colorspace’ failed
Looks like something is a bit messed up with the package meta-information or something in your Rstudio installation. A simple work-around to try is to just download the latest colorspace zip file from here: http://cran.r-project.org/web/packages/colorspace/index.html
Then install by running install.packages("c:/path/to/downloaded/zip/file/colorspace_1.2-5.zip")
When you type in install.packages("ggplot2") into the console, RStudio is pre-programmed to also install the dependencies (i.e. the other packages ggplot needs to run properly). In this case, the issue appears to be with the colorspace package not being able to installed. This is likely because you're running Yosemite and when RStudio looks to install colorspace, it searches for it on the CRAN, it can't find it for some reason:
cannot open URL 'http://cran.rstudio.com/bin/macosx/mavericks/contrib/3.1/colorspace_1.2-4.tgz'
You should be able to overcome this by installing the colorspace package yourself via the CRAN: http://cran.r-project.org/web/packages/colorspace/index.html.
Similar to the original question, I recently encountered this issue with colormap 2.0.0, ggplot2 3.3.2, R 4.0.3, and RStudio 1.3.1093 on Windows. install.packages("ggplot2") reports success even though it does not install colormap and library(ggplot2) therefore fails. In my case, install.packages("colormap") failed to locate the 2.0.0 binaries, retrieving the 1.4.1 sources instead. Downloading the 2.0.0 binary from https://CRAN.R-project.org/package=colorspace, as suggested in other answers, failed with
> install.packages("C:/Users/<username>/Downloads/colorspace_2.0-0.zip") # note use of forward slashes to avoid the backlash escaping problems #Paul M mentions in his comment on #L P's answer -- \\ instead of just \ also works
Warning in install.packages :
package ‘C:/Users/<username>/Downloads/colorspace_2.0-0.zip’ is not available for this version of R
What resolved this for me was including type = "win.binary" in install.packages()'s arguments when installing from the download.
install.packages("C:/Users/<username>/Downloads/colorspace_2.0-0.zip", type = "win.binary")
Having done this, install.packages("colorspace") also succeeds (both in session and after remove.packages("colorspace") and restarting R).
Try to install the color space separately and reload the package inside R studio again .
install.packages('ggplot2')
install.packages('colorspace')
library(ggplot2)
Hope this helps!
Sometimes when the Curl version is not updated, problem with installing the packages happens. For resolving the problem in Linux, you could use the following command to update your Curl to tha last version:
sudo apt-get install libcurl4-openssl-dev libxml2-dev
To me, it started giving this error when I updated all my packages using the available option "Packages" in R studio, it was working well before. After trying a few mentioned solutions in google and failed, I updated my R version and installed the packages, it worked.

Installing SVGAnnotation package under R 2.15.3

I have troubles installing the SVGAnnotation package under R 2.15.3
Because this package is not available at CRAN, I downloaded version 0.93-1 from http://www.omegahat.org/SVGAnnotation/
and try to install it via
install.packages("SVGAnnotation_0.93-1.tar.gz", repos=NULL,
type="source")
Unfortunately, the following problem occurs:
Anyone has an idea how I could get it to work for R 2.15.3?
If you would like to install the most recent version, try
library(devtools)
install_github('duncantl/SVGAnnotation')

Resources