Good night!!
I'm trying to install mxmaps on my rstudio but I keep getting the same error mistake, I'm using the following command:
if (!require(devtools)) {
install.packages("devtools")
}
devtools::install_github('diegovalle/mxmaps')
and the error I got in screen is:
Configuration failed because libudunits2.so was not found. Try installing:
* deb: libudunits2-dev (Debian, Ubuntu, ...)
* rpm: udunits2-devel (Fedora, EPEL, ...)
* brew: udunits (OSX)
If udunits2 is already installed in a non-standard location, use:
--configure-args='--with-udunits2-lib=/usr/local/lib'
if the library was not found, and/or:
--configure-args='--with-udunits2-include=/usr/include/udunits2'
if the header was not found, replacing paths with appropriate values.
You can alternatively set UDUNITS2_INCLUDE and UDUNITS2_LIBS manually.
--------------------------------------------------------------------------------
See `config.log' for more details
ERROR: configuration failed for package ‘units’
* removing ‘/home/use/R/x86_64-pc-linux-gnu-library/4.1/units’
ERROR: dependency ‘units’ is not available for package ‘sf’
* removing ‘/home/use/R/x86_64-pc-linux-gnu-library/4.1/sf’
ERROR: dependencies ‘rgdal’, ‘sf’ are not available for package ‘tigris’
* removing ‘/home/use/R/x86_64-pc-linux-gnu-library/4.1/tigris’
ERROR: dependencies ‘sf’, ‘tigris’, ‘units’ are not available for package ‘tidycensus’
* removing ‘/home/use/R/x86_64-pc-linux-gnu-library/4.1/tidycensus’
ERROR: dependencies ‘tigris’, ‘tidycensus’ are not available for package ‘choroplethr’
* removing ‘/home/use/R/x86_64-pc-linux-gnu-library/4.1/choroplethr’
The downloaded source packages are in
‘/tmp/RtmpKjF14v/downloaded_packages’
✓ checking for file ‘/tmp/RtmpKjF14v/remotese8841ad7791/diegovalle-mxmaps-6d56d09/DESCRIPTION’ ...
─ preparing ‘mxmaps’:
✓ checking DESCRIPTION meta-information ...
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ building ‘mxmaps_2020.1.1.tar.gz’