Skip to content

package sare not loading and/or installing

2 messages · Phil Smith, Ivan Krylov

#
Hello R-Help People!

I had to reinstall my operating system... and reinstall R.

I am having trouble with reinstalling packages:

install.packages(c( "curl"))
install.packages(c( "quantmod"))
install.packages(c( "TTR"))
install.packages(c( "xts"))
install.packages(c( "zoo"))
install.packages(c( "tidyquant"))install.packages(c( "TTR"))

Some of these install with no problem. However, most of them give an error messages that looks like:

Warning in install.packages :
  installation of package ?curl? had non-zero exit status

There seems to be some sort of content for each of these packages (and others) in my /tmp/RtmpiTrqk2/downloaded_packages/ directory.

Whey I try to load these packages with
library(curl)
library(xts)
library(zoo)
library(quantmod)
library(TTR) library(tidyquant)

I get a message like this one:

Error in library(quantmod) : there is no package called ?quantmod?

How do I install and load these packages successfully?

Thank you!
Phil Smith

Sent with [Proton Mail](https://proton.me/) secure email.
Message-ID: <glDVk6EQTpA3AjpJQx8GKNoTXsMDJttb_0xsHj7I4gT7U4dCzvJSVWqz6APmjXgDN64ctvH1D6WsjAyAYMJDT2EMccsTcHGYUO929ZDciXU=@protonmail.com>
#
On Tue, 31 Jan 2023 13:12:46 +0000
Phil Smith via R-help <r-help at r-project.org> wrote:

            
I'm using my psychic debugging powers to determine that you're using
some kind of Linux or another POSIX-compatible OS. Scroll up to see the
error messages produced when installing the curl package. You'll see
that it's complaining about the lack of development headers for cURL
library.

If you install them using your package manager (which could be `sudo apt
install libcurl4-openssl-dev`, `sudo yum install curl-devel` or
something else depending on the OS/distro), the installation of the
curl package should succeed, allowing you to install other packages
that depend on it.