Problem with package installation from GitHub - r

I tried to install a package from GitHub, and I used the following code in R:
install.packages("devtools")
library(devtools)
install_github("Displayr/flipPlots")
But I obtained the following Error:
Error: Failed to install 'flipPlots' from GitHub:
Failed to install 'flipTransformations' from GitHub:
Failed to install 'flipFormat' from GitHub:
Failed to install 'formattable' from GitHub:
(converted from warning) cannot remove prior installation of package ‘Rcpp’
How can I solve this problem?
Edit. After the suggestions enclosed in comments, I done the following steps:
install.packages("Rcpp")
but I obtained:
Error: Failed to install 'flipPlots' from GitHub:
Failed to install 'flipTransformations' from GitHub:
Failed to install 'flipFormat' from GitHub:
Failed to install 'formattable' from GitHub:
(converted from warning) cannot remove prior installation of package ‘rlang’
Then:
install.packages("rlang")
and
Error: Failed to install 'unknown package' from GitHub:
Failed to install 'unknown package' from GitHub:
Failed to install 'unknown package' from GitHub:
(converted from warning) cannot remove prior installation of package ‘backports’
Lastly I installed backports package but obtaining the following new error:
Error: Failed to install 'unknown package' from GitHub:
cannot open URL
'https://api.github.com/repos/Displayr/flipPlots/contents/DESCRIPTION?ref=master'

Related

Installing devtools

I'm trying to install devtools for R in a MacBook (OS 13.0)
Problem is that it doesn't have dependency pkgdown:
ERROR: dependency ‘pkgdown’ is not available for package ‘devtools’
* removing ‘/opt/homebrew/lib/R/4.2/site-library/devtools’
nor ragg (when I try to install pkgdown)
<stdin>:1:10: fatal error: 'hb-ft.h' file not found
#include <hb-ft.h>
^~~~~~~~~
1 error generated.
--------------------------------------------------------------------
ERROR: configuration failed for package ‘textshaping’
ERROR: dependency ‘ragg’ is not available for package ‘pkgdown’
Trying to install textshaping didn't work either, giving:
#include <hb-ft.h>
^~~~~~~~~
1 error generated.
--------------------------------------------------------------------
ERROR: configuration failed for package ‘textshaping’
* removing ‘/opt/homebrew/lib/R/4.2/site-library/textshaping’
Never mind I solved it with:
brew install harfbuzz
brew install fribidi
In addition (for future reference) you also need:
brew install libgit2
and then
install.packages("usethis", verbose=TRUE)

Errors when trying to install 'semPlot' R package

I'm trying to install the package 'semPlot' in RStudio, and keep getting errors:
** testing if installed package can be loaded from temporary location
*** arch - i386
Error: package or namespace load failed for 'rockchalk' in library.dynam(lib, package, package.lib):
DLL 'zip' not found: maybe not installed for this architecture?
Error: loading failed
Execution halted
*** arch - x64
ERROR: loading failed for 'i386'
* removing 'C:/Documents/R/win-library/4.0/rockchalk'
Warning in install.packages :
installation of package ‘rockchalk’ had non-zero exit status
ERROR: failed to lock directory 'C:/Documents/R/win-library/4.0' for modifying
Try removing 'C:/Documents/R/win-library/4.0/00LOCK-OpenMx'
Warning in install.packages :
installation of package ‘OpenMx’ had non-zero exit status
ERROR: dependencies 'rockchalk', 'OpenMx' are not available for package 'semPlot'
* removing 'C:/Documents/R/win-library/4.0/semPlot'
Warning in install.packages :
installation of package ‘semPlot’ had non-zero exit status
The downloaded source packages are in
‘C:\AppData\Local\Temp\RtmpE9qK0s\downloaded_packages’
I already installed the package ‘rockchalk’, but it didn't help.
The first time I tried to install 'semPlot' there was an almost endless process which also ended with an error.
You could use the install_github function to install R packages hosted on GitHub from the devtools package. Here is a reproducible example:
devtools::install_github('SachaEpskamp/semPlot')
library(semPlot)
Created on 2022-11-14 with reprex v2.0.2
I solved it by uninstalling R and RStudio, and then installing them, and googling a small problem that came up with tydiverse.

I am facing error while installing R package textshaping

I am getting this error while installing packages.
ERROR: configuration failed for package ‘textshaping’
ERROR: configuration failed for package ‘textshaping’
removing ‘/home/Saniya/R/si-s/renv/staging/1/textshaping’
Error: install of package 'textshaping' failed [error code 1]
What is wrong and what should I do. I am new with R. Please help.
In bash:
sudo apt install libharfbuzz-dev libfribidi-dev
in RStudio
install.packages("textshaping", dependencies = TRUE)

Ubuntu installation of package ‘tidyverse’ had non-zero exit status

Hello I am using R with Ubuntu 18.0.4 and having trouble to install packages. I have installed
sudo apt-get install libcurl4-openssl-dev
but still it produces the following error
installing source package ‘labelled’ ...
package ‘labelled’ successfully unpacked and MD5 sums checked
R
inst
preparing package for lazy loading
Warning: S3 methods ‘[.fun_list’, ‘[.grouped_df’, ‘all.equal.tbl_df’, ‘anti_join.data.frame’, ‘anti_join.tbl_df’, ‘arrange.data.frame’, ‘arrange.default’, ‘arrange.grouped_df’, ‘arrange.tbl_df’, ‘arrange_.data.frame’, ‘arrange_.tbl_df’, ‘as.data.frame.grouped_df’, ‘as.data.frame.rowwise_df’, ‘as.data.frame.tbl_cube’, ‘as.data.frame.tbl_df’, ‘as.table.tbl_cube’, ‘as.tbl.data.frame’, ‘as.tbl.tbl’, ‘as.tbl_cube.array’, ‘as.tbl_cube.data.frame’, ‘as.tbl_cube.matrix’, ‘as.tbl_cube.table’, ‘as_data_frame.grouped_df’, ‘as_data_frame.tbl_cube’, ‘auto_copy.tbl_cube’, ‘auto_copy.tbl_df’, ‘cbind.grouped_df’, ‘collapse.data.frame’, ‘collect.data.frame’, ‘common_by.NULL’, ‘common_by.character’, ‘common_by.default’, ‘common_by.list’, ‘compute.data.frame’, ‘copy_to.DBIConnection’, ‘copy_to.src_local’, ‘default_missing.data.frame’, ‘default_missing.default’, �� [... truncated]
Error in library.dynam(lib, package, package.lib) :
shared object ‘dplyr.so’ not found
ERROR: lazy loading failed for package ‘labelled’
removing ‘/home/sami/R/x86_64-pc-linux-gnu-library/3.4/labelled’
The downloaded source packages are in
‘/tmp/RtmpZbHxk1/downloaded_packages’
Warning message:
In install.packages("labelled") :
installation of package ‘labelled’ had non-zero exit status
Try installing the following libraries: libxml2-dev, libssl-dev and libcurl4-openssl-dev. Try to install them all using the apt command.
Greetings!

Error installing "Quandl" in R 3.1.1

I have installed R 3.1. and RStudio 1.0.44 in BunsenLabs (Debian Jessie)
and I want to install the Quandl package.
In R console I write:
install.packages("Quandl")
and the output is:
ERROR: configuration failed for package ‘openssl’
* removing
ERROR: dependency ‘openssl’ is not available for package ‘httr’
* removing
ERROR: dependency ‘httr’ is not available for package ‘Quandl’
* removing
Warning in install.packages :
installation of package ‘Quandl’ had non-zero exit status
library(Quandl)
Error in library(Quandl) : there is no package called ‘Quandl’
Thanks,
RTA
Solution, write in linux terminal:
sudo apt-get install r-cran-openssl
Thanks

Resources