Package installation: Tigris

I am trying to install.package ("tigris") on a MAC and though I seem to get it, there appears to be a problem with lazy load-- I have similar problems when trying install tidyverse, and reprex--- I have tried to update all packages. Suggestions appreciated. Thanks

"Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
unknown timezone 'zone/tz/2018i.1.0/zoneinfo/America/New_York'

  • installing source package ‘tigris’ ...
    ** package ‘tigris’ successfully unpacked and MD5 sums checked
    ** R
    ** data
    *** moving datasets to lazyload DB
    ** preparing package for lazy loading
    Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
    there is no package called ‘bindrcpp’
    ERROR: lazy loading failed for package ‘tigris’
  • removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/tigris’
    Warning in install.packages :
    installation of package ‘tigris’ had non-zero exit status

Have you tried installing the missing dependency?

install.packages("bindrcpp")

Thanx, I used old.packages() to check what I had, and there was bindrcpp. So I tried to update.packages("bindrcpp") but to no avail. It looks like many of my packages need updating but I always seem to run into the same problem, Any suggestions would be welcomed-- Should I un-install R Studio and just start over, I am running with MAC Os, Thanks again,

Package
bindrcpp "bindrcpp"
Installed Built ReposVer
bindrcpp "0.2" "3.3.2" "0.2.2"
bindrcpp "https://cran.rstudio.com/src/contrib"

Do you want to install from sources the packages which need compilation?
y/n: y --"I tried n as well with similar negative results.

installing the source packages ‘Rcpp’, ‘bindrcpp’
trying URL 'https://cran.rstudio.com/src/contrib/Rcpp_1.0.1.tar.gz'
Content type 'application/x-gzip' length 3661123 bytes (3.5 MB)

downloaded 3.5 MB
trying URL 'https://cran.rstudio.com/src/contrib/bindrcpp_0.2.2.tar.gz'
Content type 'application/x-gzip' length 10212 bytes

downloaded 10212 bytes
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
unknown timezone 'zone/tz/2018i.1.0/zoneinfo/America/New_York'

  • installing source package ‘Rcpp’ ...
    ** package ‘Rcpp’ successfully unpacked and MD5 sums checked
    ** libs
    xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
    ERROR: compilation failed for package ‘Rcpp’
  • removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/Rcpp’
  • restoring previous ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/Rcpp’
    Warning in install.packages :
    installation of package ‘Rcpp’ had non-zero exit status
    Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
    unknown timezone 'zone/tz/2018i.1.0/zoneinfo/America/New_York'
  • installing source package ‘bindrcpp’ ...
    ** package ‘bindrcpp’ successfully unpacked and MD5 sums checked
    ** libs
    xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
    ERROR: compilation failed for package ‘bindrcpp’
  • removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/bindrcpp’
  • restoring previous ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/bindrcpp’
    Warning in install.packages :
    installation of package ‘bindrcpp’ had non-zero exit status

The downloaded source packages are in
‘/private/var/folders/n9/v_01bfk905s6hp0nqkb7td6r0000gn/T/Rtmp5SSgsa/downloaded_packages’

When you install packages from source on MacOS you need xcode installed in your system for compiling packages.

xcode-select --install

Here are some installation instructions

1 Like

Thanks--I installed Xcode, and was able to install and update some packages, e.g, "tidyverse" which had similar problems noted above, However, when I tried to install.packages("tigris"). Thanks again for the other help,

** package ‘tigris’ successfully unpacked and MD5 sums checked
** R
** data
*** moving datasets to lazyload DB
** preparing package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called ‘units’
ERROR: lazy loading failed for package ‘tigris’

  • removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/tigris’
    Warning in install.packages :
    installation of package ‘tigris’ had non-zero exit status

You are missing another dependency units
Try with this command

install.packages("tigris", dependencies = TRUE)

Thank you for your patience—Afraid no luck—

install.packages("tigris" , dependencies=TRUE)
There is a binary version available but the source version is later:
binary source needs_compilation
tigris 0.6.2 0.7 FALSE
installing the source package ‘tigris’
trying URL 'https://cran.rstudio.com/src/contrib/tigris_0.7.tar.gz'
Content type 'application/x-gzip' length 72980 bytes (71 KB)

downloaded 71 KB

Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
unknown timezone 'zone/tz/2018i.1.0/zoneinfo/America/New_York'

  • installing source package ‘tigris’ ...
    ** package ‘tigris’ successfully unpacked and MD5 sums checked
    ** R
    ** data
    *** moving datasets to lazyload DB
    ** preparing package for lazy loading
    Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
    there is no package called ‘units’
    ERROR: lazy loading failed for package ‘tigris’
  • removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/tigris’
    Warning in install.packages :
    installation of package ‘tigris’ had non-zero exit status
    The downloaded source packages are in
    ‘/private/var/folders/n9/v_01bfk905s6hp0nqkb7td6r0000gn/T/RtmpOlRm6l/downloaded_packages’

What happens if you manually try to install the missing dependency?

install.packages("units") 

Tried install.packages("units"), and almost worked---looks like something to do with my configuration. To be honest, I am bit at a loss (more than usual), and not quite sure what they mean by installing the missing udunits2, Thanks again,

checking udunits2.h usability... no
checking udunits2.h presence... no
checking for udunits2.h... no
checking udunits2/udunits2.h usability... no
checking udunits2/udunits2.h presence... no
checking for udunits2/udunits2.h... no
checking for ut_read_xml in -ludunits2... no
configure: error: in `/private/var/folders/n9/v_01bfk905s6hp0nqkb7td6r0000gn/T/RtmpRhUG9R/R.INSTALL101973886cdc4/units':
configure: error:

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 ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/units’
    Warning in install.packages :
    installation of package ‘units’ had non-zero exit status

The downloaded source packages are in
‘/private/var/folders/n9/v_01bfk905s6hp0nqkb7td6r0000gn/T/RtmpScrevC/downloaded_packages’

You have to install that program in your system, I don't use Mac OS but maybe this installation guide would help you

http://macappstore.org/udunits/

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.