RCurl installation error - r

I have R 3.2.0 in redhat.
I am trying to install RCurl, but get the following error
myUTF8.c: In function \u2018StringValue\u2019:
myUTF8.c:284: warning: passing argument 1 of \u2018Rf_mkCharLenCE\u2019 from incompatible pointer type
gcc -std=gnu99 -shared -L/home/gowthan/Downloads/R-3.2.0/lib -L/usr/local/lib64 -o RCurl.so base64.o curl.o curlInit.o curl_base64.o enums.o json.o memoryManagement.o myUTF8.o -L/local/p4clients/pkgbuild-5R4zB/workspace/build/Curl/Curl-7.18.1.155.6782/RHEL5_64/DEV.STD.PTHREAD/build/private/curl/install/lib -lcurl -L/opt/brazil-pkg-cache/packages/Fbopenssl/Fbopenssl-0.0.4.504.7765/RHEL5_64/DEV.STD.PTHREAD/build/lib -lfbopenssl -L/local/p4clients/pkgbuild-5R4zB/workspace/build/Curl/Curl-7.18.1.155.6782/RHEL5_64/DEV.STD.PTHREAD/build/private/tmp/brazil-path/[Openssl]lib.libfarm/lib -L/local/p4clients/pkgbuild-k5Vrj/workspace/build/Libxml2/Libxml2-2.7.8.334.176/RHEL5_64/DEV.STD.PTHREAD/build/private/libxml2/install/lib -lxml2 -lz -lm -L/home/gowthan/Downloads/R-3.2.0/lib -lR
/usr/bin/ld: cannot find -lfbopenssl
collect2: ld returned 1 exit status
make: *** [RCurl.so] Error 1
ERROR: compilation failed for package \u2018RCurl\u2019
* removing \u2018/home/gowthan/Downloads/R-3.2.0/library/RCurl\u2019
The downloaded source packages are in
\u2018/tmp/RtmpLXPsKI/downloaded_packages\u2019
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Warning messages:
1: In install.packages("RCurl", dep = TRUE) :
installation of package \u2018XML\u2019 had non-zero exit status
2: In install.packages("RCurl", dep = TRUE) :
installation of package \u2018RCurl\u2019 had non-zero exit status
The build is failing and it does not find lfbopenssl. How do I install that?
EDIT:
I already tried : yum -y install libcurl libcurl-devel
Loaded plugins: security
Setting up Install Process
No package libcurl available.
No package libcurl-devel available.
Nothing to do
I already have curl, curl-devl and openssl installed.

There is warning: cannot find -lfbopenssl, so you need to install openssl first: https://www.openssl.org/and then try to perfrom RCurl installation one more time.
Try this code:
sudo apt-get install aptitude
sudo apt-get install libcurl4-openssl-dev
sudo apt-get install libxml2-dev
As mentioned here: https://github.com/sagemath/cloud/issues/114
EDIT
on red-hat try this:
yum install openssl
Also remember about configuration of openssl and curl.
The configuration of openssl is described here:
http://dev.antoinesolutions.com/openssl

Related

How can I install devtools with Renv without getting an Error

Renv, can't install devtools
Goal: install devtools with renv
Expected Results: Installation of devtools.
Actual Results: see error below
I try to install packages in RStudio through renv (On Ubuntu), to use for my own package. I performed Renv init(), packages will install except for devtools. When I try to install devtools through renv::install()I get the following error:
> renv::install("devtools")
Retrieving 'https://cran.rstudio.com/src/contrib/devtools_2.4.4.tar.gz' ...
OK [file is up to date]
Retrieving 'https://cran.rstudio.com/src/contrib/pkgdown_2.0.6.tar.gz' ...
OK [file is up to date]
Retrieving 'https://cran.rstudio.com/src/contrib/ragg_1.2.2.tar.gz' ...
OK [file is up to date]
Installing ragg [1.2.2] ...
FAILED
Error installing package 'ragg':
================================
* installing *source* package ‘ragg’ ...
** package ‘ragg’ successfully unpacked and MD5 sums checked
** using staged installation
Package libtiff-4 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libtiff-4.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libtiff-4' found
Package libtiff-4 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libtiff-4.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libtiff-4' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lfreetype -lpng16 -ltiff -lz -ljpeg -lbz2
-----------------------------[ ANTICONF ]-------------------------------
Configuration failed to find one of freetype2 libpng libtiff-4. Try installing:
* deb: libfreetype6-dev libpng-dev libtiff5-dev libjpeg-dev (Debian, Ubuntu, etc)
* rpm: freetype-devel libpng-devel libtiff-devel libjpeg-turbo-devel (Fedora, CentOS, RHEL)
* csw: libfreetype_dev libpng16_dev libtiff_dev libjpeg_dev (Solaris)
If freetype2 libpng libtiff-4 is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a freetype2 libpng libtiff-4.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
-------------------------- [ERROR MESSAGE] ---------------------------
<stdin>:1:22: fatal error: ft2build.h: No such file or directory
compilation terminated.
--------------------------------------------------------------------
ERROR: configuration failed for package ‘ragg’
* removing ‘/home/SmitsG/Documents/Projects/{"package_location"}/renv/staging/1/ragg’
Error: install of package 'ragg' failed [error code 1]
So this resulted in the following errors:
No package 'libtiff-4' found
:1:22: fatal error: ft2build.h: No such file or directory
Error: install of package 'ragg' failed [error code 1]
I tried the following:
Installation in other package environment. This didn't work out
https://techoverflow.net/2019/06/11/how-to-fix-ft2build-h-no-such-file-or-directory/
Seems that I am missing the ft2build.h header file from
libfreetype. So I tried to install libfreetype from tar.gz and from
CRAN, for renv (this didn't install automatically). This didn't work out.
Package libtiff-4 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libtiff-4.pc'
to the PKG_CONFIG_PATH environment variable
I found this link: https://github.com/numworks/epsilon/issues/592 where the set the PKG_CONFIG_PATH. But I think this can only be done when libfreetype is installed through renv.
{:~/path_to_package}$ pkg-config --cflags freetype2-I/usr/include/freetype2
-I/usr/include/libpng16
{:~/path_to_package}$ pkg-config --libs --cflags libtiff-4Package libtiff-4 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libtiff-4.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libtiff-4' found
I am a newbie to linux and I have found that installing R packages can be very frustrating because (1) there are numerous linux dependencies that need to be installed first and (2) it takes forever. Below is a script that installs the dependencies that I have found in installing R on my system (Linux Mint 21 Vanessa).
sudo apt update
sudo apt install -q \
cargo \
cmake \
default-jdk \
fonts-roboto \
htop \
libcairo2-dev \
libclang-dev \
libcurl4-openssl-dev \
libfontconfig1-dev \
libfreetype6-dev \
libfribidi-dev \
libgdal-dev \
libgeos-dev \
libharfbuzz-dev \
libjpeg-dev \
libproj-dev \
libpng-dev \
libpq-dev \
libsodium-dev \
libssl-dev \
libtiff5-dev \
libudunits2-dev \
libx11-dev \
libxml2-dev \
openjdk-8-jdk \
openjdk-8-jre \
pandoc \
ttf-mscorefonts-installer \
xorg-dev

Problems installing R package "nloptr" on M1 mac

I'm trying to install the "lme4" library in R and RStudio, which worked before I was on an M1 Mac, but now it's not installing. The dependency that's having trouble is: "nloptr". Here's my current error:
clang++ -arch arm64 -std=gnu++11 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/opt/R/arm64/lib -o nloptr.so init_nloptr.o nloptr.o test-C-API.o test-runner.o -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/opt/R/arm64/gfortran/lib/gcc/aarch64-apple-darwin20.2.0/11.0.0 -L/opt/R/arm64/gfortran/lib -lgfortran -lemutls_w -lm -Lnlopt/lib -lnlopt -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
ld: warning: directory not found for option '-Lnlopt/lib'
ld: library not found for -lnlopt
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [nloptr.so] Error 1
ERROR: compilation failed for package ‘nloptr’
* removing ‘/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/nloptr’
Warning in install.packages :
installation of package ‘nloptr’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/ht/y6qd6yfn67x086jtwxvh42tw0000gn/T/RtmpULtpZq/downloaded_packages’ ```
I'm on an M1 Mac with Monterey (12.1). I've installed the arm64 version of R. Here's my current version R 4.1.2:
> version
_
platform aarch64-apple-darwin20
arch aarch64
os darwin20
system aarch64, darwin20
status
major 4
minor 1.2
year 2021
month 11
day 01
svn rev 81115
language R
version.string R version 4.1.2 (2021-11-01)
nickname Bird Hippie
I've already tried the following in Terminal: brew install nlopt and brew install gcc.
Before this, I also had an error as follows:
ld: warning: directory not found for option '-L/opt/R/arm64/gfortran/lib/gcc/aarch64-apple-darwin20.2.0/11.0.0'
To fix that, based on Googling, I did this
export PATH=$PATH:/opt/R/arm64/gfortran/bin
and this
ln -sfn `xcrun --show-sdk-path` /opt/R/arm64/gfortran/SDK
On my machine (an M1 Mac running Big Sur), I've just tried install.packages("nloptr") without first doing brew install nlopt.
I get the same warning about -Lnlopt/lib:
ld: warning: directory not found for option '-Lnlopt/lib'
ld: library not found for -lnlopt
clang-13: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [nloptr.so] Error 1
ERROR: compilation failed for package ‘nloptr’
but prior to the warning I see:
checking if pkg-config knows NLopt... no
using NLopt via local cmake build on arm64
------------------ CMAKE NOT FOUND --------------------
CMake was not found on the PATH. Please install CMake:
- yum install cmake (Fedora/CentOS; inside a terminal)
- apt install cmake (Debian/Ubuntu; inside a terminal).
- pacman -S cmake (Arch Linux; inside a terminal).
- brew install cmake (MacOS; inside a terminal with Homebrew)
- port install cmake (MacOS; inside a terminal with MacPorts)
Alternatively install CMake from: <https://cmake.org/>
-------------------------------------------------------
install.packages("nloptr") succeeds after I install CMake with brew install cmake.
As for your initial issue with gfortran, I might suggest trying my instructions here. R recommends installing a specific build of gfortran and configuring compilers to find that installation via ~/.R/Makevars. You really should not need to mess with your PATH...
Unfortunately brew install cmake didn't help me, nor did installing nloptr from source, nor did configuring RStudio to use the correct PATH.
According to the documentation, in the section labeled Installing CMake (macOS and Linux only), the nloptr package installer expects to find the cmake executable either at:
The path specified by the CMAKE_BIN environment variable (spoiler alert: setting it didn't work), or
/Applications/CMake.app/Contents/bin/cmake.
Here's how I finally resolved the problem in a zsh shell:
brew install cmake
sudo mkdir -p /Applications/cmake.app/Contents/bin
cd /Applications/cmake.app/Contents/bin
sudo ln -s /opt/homebrew/bin/cmake
The downside to this approach is that it puts a non-application in the /Applications directory, but that I can live with.

Installation issues of ggpubr

I'm trying to install the R package ggpubr as follows (on Docker image) - all other libraries are installed successfully:
install.packages("~/mypackages/ggpubr_0.3.0.tar.gz", repos=NULL, type="source")
but I get the following error:
2020-06-13T08:55:43.6605261Z [0m[91mERROR: dependencies 'ggrepel', 'ggsci', 'cowplot', 'ggsignif', 'polynom', 'rstatix' are not available for package 'ggpubr'
2020-06-13T08:55:43.6608879Z [0m[91m* removing '/usr/local/R/library/ggpubr'
I tried to install it in different ways:
# Failed with the message that a mirror must be specified
install.packages("ggpubr")
# Failed due to dependencies
install.packages("ggpubr", repos="https://cran.rediris.org/")
# Failed because some dependencies cannot be installed from https://cran.rediris.org/
install.packages("ggpubr", repos="https://cran.rediris.org/", dependencies=TRUE)
I'm really confused. How can I fix this issue?
Update #1:
As suggested, I used ``:
install.packages("ggpubr",
repos = "https://cloud.r-project.org/",
dependencies = TRUE)
But still got the following errors:
2020-06-13T10:16:21.5258238Z [0m[91mERROR: dependencies 'pbkrtest', 'lme4' are not available for package 'car'
2020-06-13T10:16:21.5258733Z [0m[91m* removing '/usr/local/R/library/car'
2020-06-13T10:16:21.8271275Z [0m[91mERROR: dependency 'car' is not available for package 'rstatix'
2020-06-13T10:16:21.8271930Z [0m[91m* removing '/usr/local/R/library/rstatix'
2020-06-13T10:16:22.2094780Z [0m[91mERROR: dependency 'rstatix' is not available for package 'ggpubr'
2020-06-13T10:16:22.2095409Z [0m[91m* removing '/usr/local/R/library/ggpubr'
2020-06-13T10:16:22.2202760Z [0m[91m
2020-06-13T10:16:22.2202943Z The downloaded source packages are in
2020-06-13T10:16:22.2203292Z '/tmp/RtmpRJqVdH/downloaded_packages'
2020-06-13T10:16:22.2209634Z [0m[91mUpdating HTML index of packages in '.Library'
2020-06-13T10:16:22.2695889Z [0m[91mMaking 'packages.html' ...[0m[91m done
2020-06-13T10:16:22.2696343Z Warning messages:
2020-06-13T10:16:22.2696877Z 1: In install.packages("ggpubr", repos = "https://cloud.r-project.org/", :
2020-06-13T10:16:22.2697332Z installation of package 'nloptr' had non-zero exit status
2020-06-13T10:16:22.2697747Z 2: In install.packages("ggpubr", repos = "https://cloud.r-project.org/", :
2020-06-13T10:16:22.2698158Z installation of package 'lme4' had non-zero exit status
2020-06-13T10:16:22.2698562Z 3: In install.packages("ggpubr", repos = "https://cloud.r-project.org/", :
2020-06-13T10:16:22.2698981Z installation of package 'pbkrtest' had non-zero exit status
2020-06-13T10:16:22.2699408Z 4: In install.packages("ggpubr", repos = "https://cloud.r-project.org/", :
2020-06-13T10:16:22.2699816Z [0m[91m installation of package 'car' had non-zero exit status
2020-06-13T10:16:22.2700246Z 5: In install.packages("ggpubr", repos = "https://cloud.r-project.org/", :
2020-06-13T10:16:22.2700644Z installation of package 'rstatix' had non-zero exit status
2020-06-13T10:16:22.2701086Z 6: In install.packages("ggpubr", repos = "https://cloud.r-project.org/", :
2020-06-13T10:16:22.2701483Z installation of package 'ggpubr' had non-zero exit status
2020-06-13T10:16:22.8005121Z [0m[91malso installing the dependency 'triebeard'
Update #2:
Following the suggestions in comments, I tried to install dependencies one by one using install.packages instead of using dependencies=TRUE. I started with installing the package nloptr. Please see below the error message: ERROR: configuration failed for package 'nloptr'.
2020-06-13T11:25:07.6990004Z [91mtestopt.cpp: In function 'int test_function(int)':
2020-06-13T11:25:07.6990942Z testopt.cpp:223:21: warning: 'nlopt_result nlopt_minimize(nlopt_algorithm, int, nlopt_func_old, void*, const double*, const double*, double*, double*, double, double, double, double, const double*, int, double)' is deprecated [-Wdeprecated-declarations]
2020-06-13T11:25:07.6991447Z maxeval, maxtime);
2020-06-13T11:25:07.6991629Z ^
2020-06-13T11:25:07.6991995Z [0m[91mIn file included from testopt.cpp:44:0:
2020-06-13T11:25:07.6992273Z ../api/nlopt.h:329:28: note: declared here
2020-06-13T11:25:07.6992503Z NLOPT_EXTERN(nlopt_result) nlopt_minimize(
2020-06-13T11:25:07.6992740Z ^~~~~~~~~~~~~~
2020-06-13T11:25:07.8309097Z [0mmv -f .deps/testopt.Tpo .deps/testopt.Po
2020-06-13T11:25:07.8351821Z /bin/bash ../libtool --tag=CXX --mode=link x86_64-conda_cos6-linux-gnu-c++ -std=gnu++11 -fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -I/usr/local/envs/mlopspython_ci/include -fdebug-prefix-map=/tmp/build/80754af9/r-base_1570124924484/work=/usr/local/src/conda/r-base-3.6.1 -fdebug-prefix-map=/usr/local/envs/mlopspython_ci=/usr/local/src/conda-prefix -o testopt testfuncs.o testopt.o ../libnlopt_cxx.la -lm
2020-06-13T11:25:07.8924933Z [91mlibtool: link: warning: library `/usr/local/envs/mlopspython_ci/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/lib/../lib/libstdc++.la' was moved.
2020-06-13T11:25:07.9019996Z [0m[91mlibtool: link: warning: library `/usr/local/envs/mlopspython_ci/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/lib/../lib/libstdc++.la' was moved.
2020-06-13T11:25:07.9146941Z [0mlibtool: link: x86_64-conda_cos6-linux-gnu-c++ -std=gnu++11 -fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -I/usr/local/envs/mlopspython_ci/include -fdebug-prefix-map=/tmp/build/80754af9/r-base_1570124924484/work=/usr/local/src/conda/r-base-3.6.1 -fdebug-prefix-map=/usr/local/envs/mlopspython_ci=/usr/local/src/conda-prefix -o .libs/testopt testfuncs.o testopt.o ../.libs/libnlopt_cxx.so /usr/local/envs/mlopspython_ci/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/lib/../lib/libstdc++.so -lm -Wl,-rpath -Wl,/tmp/RtmpWCPONP/R.INSTALL11b11c1011f6/nloptr/src/nlopt_src/lib -Wl,-rpath -Wl,/usr/local/envs/mlopspython_ci/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/lib/../lib
2020-06-13T11:25:07.9602105Z [91m/usr/local/envs/mlopspython_ci/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin[0m[91m/ld: ../.libs/libnlopt_cxx.so: undefined reference to `memcpy#GLIBC_2.14'
2020-06-13T11:25:07.9602657Z collect2: error: ld returned 1 exit status
2020-06-13T11:25:07.9621958Z [0m[91mmake[2]: *** [Makefile:381: testopt] Error 1
2020-06-13T11:25:07.9622950Z [0mmake[2]: Leaving directory '/tmp/RtmpWCPONP/R.INSTALL11b11c1011f6/nloptr/src/nlopt_src/test'
2020-06-13T11:25:07.9633779Z [91mmake[1]: *** [Makefile:574: all-recursive] Error 1
2020-06-13T11:25:07.9634679Z [0mmake[1]: Leaving directory '/tmp/RtmpWCPONP/R.INSTALL11b11c1011f6/nloptr/src/nlopt_src'
2020-06-13T11:25:07.9635296Z [91mmake: *** [Makefile:438: all] Error 2
2020-06-13T11:25:07.9838980Z [0m[91mERROR: configuration failed for package 'nloptr'
2020-06-13T11:25:07.9845313Z [0m[91m* removing '/usr/local/R/library/nloptr'
You can define a CRAN mirror that is able to provide all the packages, e.g.
install.packages("ggpubr", repos = "https://cloud.r-project.org/", dependencies = TRUE)
(This works at least for me.)
Or you can define repos as a vector of CRAN mirrors:
install.packages("ggpubr",
repos = c("https://cran.rediris.org/", "https://cloud.r-project.org/"),
dependencies = TRUE)
I tried the answer of NMostajo installing sudo apt-get install libcurl4-openssl-dev because the installation problem of ggpubr seemed to be caused by problems with nloptr. This alone did not fix the problem. On github I found another hint that one needs to also install libnlopt-dev. This fixed the issue for me.
I am no expert in R, but I had to install couple of packages and also had to install few dependencies in R. Here is what I did.
In terminal run
sudo apt-get install libblas-dev liblapack-dev gfortran
rm -r /home/isuru/R/x86_64-pc-linux-gnu-library/4.2/00LOCK-RcppEigen
Then install packages in R
install.packages("pbkrtest")
install.packages("ggpubr")
I also followed some of the instructions in other answers. So quite not sure what is needed exactly. I was using Ubuntu 20.04 LTS.
I was having the same problem
After install nloptr, it worked.
nloptr also needs you to install cmake
so run at terminal
sudo apt install cmake
And then install nloptr
install.packages("nloptr", dependencies = TRUE)
You need to install gcc-fortran or equivalent package for your system
Had the same issue and followed #ad_bek 's advice, that alone didn't solve it, but gave me a more informative error during the installation in R,
missing: libcurl4-openssl-dev
After installing libcurl4-openssl-dev in the system the install.packages("ggpubr") was working in R
In my case, the installation of libnlopt-dev solved the problem.
System: Ubuntu 22.04 and RStudio 2022.07.1 Build 554
Ciao

installing ropensci/magick behind a firewall

I'm attempting to use the gganiminate library and I'm having an issue when I call gganimate::gganimate(myplot). The issue appears to be with a dependency library, magick.
When I call the function I get the following warning:
gganimate::gganimate(p)
1: running command 'C:\WINDOWS\system32\cmd.exe /c convert --version' had status 4
2: In find_magic() : ImageMagick not installed yet!
In im.convert(img.files, output = path.expand(movie.name), ... :
Please install ImageMagick first or put its bin path into the system PATH variable
So I try to install magick separately. I'm on a machine at a client so installing packages from github requires me to provide info to get through the firewall. I've installed other libraries from github with this machine using the same technique successfully. However, magick appears to be bumping into other problems. Below is my code and the error:
devtools::install_github("ropensci/magick",httr::set_config(httr::use_proxy("xx.xxx.xx.xx",xxxx)))
Downloading GitHub repo ropensci/magick#master
from URL https://api.github.com/repos/ropensci/magick/zipball/master
Installing magick
"C:/PROGRA~1/R/R-34~1.3/bin/x64/R" \
--no-site-file --no-environ --no-save \
--no-restore --quiet CMD INSTALL \
"C:/Users/r631265/AppData/Local/Temp/1/RtmpS0efnQ/devtools18fc5f2414b/ropensci-magick-7925af3" \
--library="C:/Users/r631265/Documents/R/win-library/3.4" \
--install-tests
* installing *source* package 'magick' ...
** libs
*** arch - i386
rm -f RcppExports.o animation.o attributes.o base.o color.o composite.o config.o convolve.o device.o edit.o fonts.o options.o resize.o transformations.o magick.dll
Linking to imagemagagick-6.9.9
"C:/PROGRA~1/R/R-34~1.3/bin/i386/Rscript.exe" "../tools/winlibs.R" 6.9.9
Error in curl::curl_download(sprintf("https://github.com/rwinlib/imagemagick%s/archive/v%s.zip", :
schannel: failed to receive handshake, SSL/TLS connection failed
Calls: <Anonymous> -> .Call
Execution halted
make: *** [winlibs] Error 1
Warning: running command 'make -f "Makevars.win" -f "C:/PROGRA~1/R/R-34~1.3/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-34~1.3/share/make/winshlib.mk" CXX='$(CXX11) $(CXX11STD)' CXXFLAGS='$(CXX11FLAGS)' CXXPICFLAGS='$(CXX11PICFLAGS)' SHLIB_LDFLAGS='$(SHLIB_CXX11LDFLAGS)' SHLIB_LD='$(SHLIB_CXX11LD)' SHLIB="magick.dll" OBJECTS="RcppExports.o animation.o attributes.o base.o color.o composite.o config.o convolve.o device.o edit.o fonts.o options.o resize.o transformations.o"' had status 2
ERROR: compilation failed for package 'magick'
* removing 'C:/Users/r631265/Documents/R/win-library/3.4/magick'
In R CMD INSTALL
Installation failed: Command failed (1)
I think perhaps my firewall details aren't getting passed into: curl::curl_download(sprintf("https://github.com/rwinlib/imagemagick%s/archive/v%s.zip",...)
Network security is a bit of a black box to me so I'm not sure what else to try or if I'm diagnosing the issue correctly. Any help would be greatly appreciated!

Installing R packages

When I have tried to install some R packages such as Rgraphviz, I get the following error:
install.packages("Rgraphviz_2.12.0.tar.gz",repos=NULL,type="source")
* installing *source* package 'Rgraphviz' ...
**********************************************
WARNING: this package has a configure script
It probably needs manual configuration
**********************************************
** libs
gcc -m32 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -
I"d:/RCompile/CRANpkg/extralibs64/local/include" -
Ilibwin/i386/include/graphviz -DHAVE_STDBOOL_H=1 -DHAVE_BOOL=1 -
DGRAPHVIZ_MAJOR=2 -DGRAPHVIZ_MINOR=28 -DGRAPHVIZ_STATIC -O3 -Wall -
std=gnu99 -mtune=core2 -c LL_funcs.c -o LL_funcs.o
gcc: unrecognized option `-std=gnu99'
d:\RCompile\CRANpkg\extralibs64\local\include\.: Permission denied
make.exe: *** [LL_funcs.o] Error 1
Warning: running command 'make -f "Makevars.win" -f "C:/PROGRA~1/R/R-
31~1.2/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-31~1.2/share/make/winshlib.mk"
SHLIB="Rgraphviz.dll" OBJECTS="LL_funcs.o Rgraphviz.o RgraphvizInit.o
agopen.o agread.o agwrite.o bezier.o buildEdgeList.o buildNodeList.o
doLayout.o graphvizVersion.o init.o"' had status 2
ERROR: compilation failed for package 'Rgraphviz'
* removing 'C:/Program Files/R/R-3.1.2/library/Rgraphviz'
Warning messages:
1: running command '"C:/PROGRA~1/R/R-31~1.2/bin/i386/R" CMD INSTALL -l
"C:\Program Files\R\R-3.1.2\library" "Rgraphviz_2.12.0.tar.gz"' had status 1
2: In install.packages("Rgraphviz_2.12.0.tar.gz", repos = NULL, type =
"source") :
installation of package ‘Rgraphviz_2.12.0.tar.gz’ had non-zero exit status
I am mostly appreciate any comment.
The first thing to do is take care of the
d:\RCompile\CRANpkg\extralibs64\local\include\.: Permission denied
error. Check file permissions on that directory; does it belong to Administrator? Make sure you have read access to it.

Resources