installing and using library to find packages

Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
unknown timezone 'zone/tz/2020a.1.0/zoneinfo/America/Denver'
ERROR: dependency ‘tibble’ is not available for package ‘ggplot2’

  • removing ‘/Users/keca6141/Library/R/3.4/library/ggplot2’
    Warning in install.packages :
    installation of package ‘ggplot2’ had non-zero exit status

When installing packages I am getting the above error. I am unsure what is causing the issue.

I have tried deleting all R studio library files and uninstalling and reinstalling R studio on my Mac and nothing so far has worked.

  • RStudio Edition: Free
  • RStudio Version: 1.3.1056
  • OS Version: macOS Catalina
  • R Version: 4.0.2

Have you tried installing the missing dependency? Do you get any error message while doing so?

install.packages("tibble") 

You will probably get more errors like this one later. As @andresrcs says it should be fixed by installing the dependencies but you can also install the whole suite of packages for data manipulation to get rid of this kind of errors in the future.

install.packages("tidyverse")
library(tidyverse)

Remember that you need to library tidy verse every time you open RStudio

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

I tride to install 'tibble' same error and had two other dependencies, 'rlang' and 'pillar'. Tried installing 'rlang' and this error occurs:

  • installing source package ‘rlang’ ...
    ** package ‘rlang’ successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs
    xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
    ERROR: compilation failed for package ‘rlang’
  • removing ‘/Users/keca6141/Library/R/4.0/library/rlang’
    Warning in install.packages :
    installation of package ‘rlang’ had non-zero exit status

Seems my RStudio cannot compile files, how can I change this?

If you need to install packages from source, then you need to install Xcode in your system (not in R) and the recommended development tools for macOS systems.
https://cran.r-project.org/bin/macosx/tools/

1 Like

@andresrcs, thank you so much! My RStudio is now running properly!