You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I attempted to install the tidycensus package but received the following error. To solve it, I ran install.packages('rgdal') first and then was able to install tidycensus. Can you add rgdal to the dependencies when downloading tidycensus to avoid this issue in the future?
>install.packages('tidycensus')
There is a binary version available but the source version is later:
binary source needs_compilation
tidycensus 0.4 0.4.6 FALSE
installing the source package ‘tidycensus’
trying URL 'https://cran.rstudio.com/src/contrib/tidycensus_0.4.6.tar.gz'
Content type 'application/x-gzip' length 1615516 bytes (1.5 MB)
==================================================
downloaded 1.5 MB
* installing *source* package ‘tidycensus’ ...
** package ‘tidycensus’ successfully unpacked and MD5 sums checked
** R
** data
*** moving datasets to lazyload DB
** preparing package for lazy loading
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/Library/Frameworks/R.framework/Versions/3.3/Resources/library/rgdal/libs/rgdal.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.3/Resources/library/rgdal/libs/rgdal.so, 6): Library not loaded: /Applications/Postgres.app/Contents/Versions/10/lib/libgdal.20.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.3/Resources/library/rgdal/libs/rgdal.so
Reason: image not found
ERROR: lazy loading failed for package ‘tidycensus’
* removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/tidycensus’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/tidycensus’
Warning in install.packages :
installation of package ‘tidycensus’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/__/3095ysy154lgtsnjdz_zp1vc0000gq/T/RtmpqS6n7p/downloaded_packages’```
The text was updated successfully, but these errors were encountered:
I attempted to install the tidycensus package but received the following error. To solve it, I ran
install.packages('rgdal')
first and then was able to installtidycensus
. Can you addrgdal
to the dependencies when downloadingtidycensus
to avoid this issue in the future?The text was updated successfully, but these errors were encountered: