download esquisser package, (linux)

Hello, I need to download a package named esquisser but I when i try I only got warning messages!

Installing package into ‘/home/agnesforsgren/R/x86_64-pc-linux-gnu-library/4.2’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘esquisser’ is not available for this version of R

I have the latest version of R. I have try diffrent ways but I do not understand where the error is. Can someone help me?

I suspect the package is actually called esquisse not esquisser

https://cran.r-project.org/web/packages/esquisse/vignettes/get-started.html

Thanks so much, now when I try to download the package I got this message:

The downloaded source packages are in
‘/tmp/RtmpWPhUdx/downloaded_packages’

What is next step to do?

That means the package is already installed, now you just need to load it in order to use it in your current R session

library(esquisse)

when I do it I get this message:

Error in library(esquisse) : there is no package called ‘esquisse’

Can you post the complete console output you get by running this command?

install.packages("esquisse")

Installing package into ‘/home/agnesforsgren/R/x86_64-pc-linux-gnu-library/4.2’
(as ‘lib’ is unspecified)
also installing the dependencies ‘curl’, ‘rio’, ‘datamods’

trying URL 'https://cloud.r-project.org/src/contrib/curl_4.3.2.tar.gz'
Content type 'application/x-gzip' length 793345 bytes (774 KB)

==================================================
downloaded 774 KB

trying URL 'https://cloud.r-project.org/src/contrib/rio_0.5.29.tar.gz'
Content type 'application/x-gzip' length 445401 bytes (434 KB)

Installing package into ‘/home/agnesforsgren/R/x86_64-pc-linux-gnu-library/4.2’
(as ‘lib’ is unspecified)
also installing the dependencies ‘curl’, ‘rio’, ‘datamods’

trying URL 'htps://cloud.r-project.org/src/contrib/curl_4.3.2.tar.gz'
Content type 'application/x-gzip' length 793345 bytes (774 KB)

downloaded 774 KB

trying URL 'htps://cloud.r-project.org/src/contrib/rio_0.5.29.tar.gz'
Content type 'application/x-gzip' length 445401 bytes (434 KB)

downloaded 434 KB

trying URL 'htps://cloud.r-project.org/src/contrib/datamods_1.3.4.tar.gz'
Content type 'application/x-gzip' length 713032 bytes (696 KB)

downloaded 696 KB

trying URL 'htps://cloud.r-project.org/src/contrib/esquisse_1.1.2.tar.gz'
Content type 'application/x-gzip' length 2460073 bytes (2.3 MB)

downloaded 2.3 MB

  • installing source package ‘curl’ ...
    ** package ‘curl’ successfully unpacked and MD5 sums checked
    ** using staged installation
    Package libcurl was not found in the pkg-config search path.
    Perhaps you should add the directory containing libcurl.pc' to the PKG_CONFIG_PATH environment variable No package 'libcurl' found Package libcurl was not found in the pkg-config search path. Perhaps you should add the directory containing libcurl.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libcurl' found
    Using PKG_CFLAGS=
    Using PKG_LIBS=-lcurl
    ------------------------- ANTICONF ERROR ---------------------------
    Configuration failed because libcurl was not found. Try installing:
  • deb: libcurl4-openssl-dev (Debian, Ubuntu, etc)
  • rpm: libcurl-devel (Fedora, CentOS, RHEL)
  • csw: libcurl_dev (Solaris)
    If libcurl is already installed, check that 'pkg-config' is in your
    PATH and PKG_CONFIG_PATH contains a libcurl.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: configuration failed for package ‘curl’

  • removing ‘/home/agnesforsgren/R/x86_64-pc-linux-gnu-library/4.2/curl’
    Warning in install.packages :
    installation of package ‘curl’ had non-zero exit status
    ERROR: dependency ‘curl’ is not available for package ‘rio’
  • removing ‘/home/agnesforsgren/R/x86_64-pc-linux-gnu-library/4.2/rio’
    Warning in install.packages :
    installation of package ‘rio’ had non-zero exit status
    ERROR: dependency ‘rio’ is not available for package ‘datamods’
  • removing ‘/home/agnesforsgren/R/x86_64-pc-linux-gnu-library/4.2/datamods’
    Warning in install.packages :
    installation of package ‘datamods’ had non-zero exit status
    ERROR: dependency ‘datamods’ is not available for package ‘esquisse’
  • removing ‘/home/agnesforsgren/R/x86_64-pc-linux-gnu-library/4.2/esquisse’
    Warning in install.packages :
    installation of package ‘esquisse’ had non-zero exit status

The downloaded source packages are in
‘/tmp/RtmpWPhUdx/downloaded_packages’

You are missing a system dependency and the console output is already telling you how solve the problem.

Thank you for your help!!

If you are on Ubuntu, Dirk Eddelbuettel's r2u pre-compiled binaries will minimize package installation and maintenance woes. All download and no compile. It's not quite dead simple to set up and there is some flailing around, but once you have the hang of it, it's catnip.

How does I install these:

  • deb: libcurl4-openssl-dev (Debian, Ubuntu, etc)
  • rpm: libcurl-devel (Fedora, CentOS, RHEL)
  • csw: libcurl_dev (Solaris)??

The exact command depends on the Linux distribution you are using. If it is a Debian based distribution then run this command on a system terminal

sudo apt install libcurl4-openssl-dev

Now it is working, thank you!!!