sk1536
sk1536

Reputation: 89

Unable to install 'cli' package from GitHub repository using remotes::install_github()

I had recently posted a question about a unicode display issue linked here. The problem then was the 'cli' package bug in the version cli v2.0.0. This bug had been brought up and has been solved on the master branch on GitHub by the developer. I am trying to install the same using remotes::install_github("r-lib/cli"). RStudio connects to GitHub fine, downloads the package, begins installing it, goes onto the step for building the package and then returns an error. The error message is copied below:

Error: (converted from warning) Setting LC_CTYPE failed, using "C"
Execution halted
Error: Failed to install 'cli' from GitHub:
  (converted from warning) installation of package '/var/folders/n0/__v02y5j02sby1w2_39185sh0000gn/T//Rtmp5HnvTL/file865408954cc/cli_2.0.0.9000.tar.gz' had non-zero exit status

Session information: R version 3.6.1 macOS Catalina

Steps taken to solve the problem: 1.Have tried using the 'devtools' package to do the same; Same error message 2.Have reinstalled the Xcode developer tools on the system 3.Tried removing and reinstalling 'cli'. I can install from CRAN with the same bug in it; still cannot install from GitHub repo.

Any thoughts would be appreciated.

Upvotes: 1

Views: 1667

Answers (1)

sk1536
sk1536

Reputation: 89

The same commands worked when I ran them in R console through terminal as superuser (sudo R from terminal). The packages compiled properly and installed.

Two pages which helped are linked below:

  1. [Installing a package inside RStudio fails on macOS Catalina

  2. [https://support.rstudio.com/hc/en-us/articles/200554786-Problem-Installing-Packages]

Upvotes: 1

Related Questions