Skip to content

Commit

Permalink
Better instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Mar 3, 2021
1 parent ba29215 commit 321e774
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,15 @@ On __MacOS__ libcurl is included with the system, so usually nothing extra is ne
brew install curl
```
You need to set the `PKG_CONFIG_PATH` environment variable to help R find the non-default curl, when building from source:
You need to set the `PKG_CONFIG_PATH` environment variable to help R find the non-default curl, when building from source. Run this in a __clean R session__ which does not have the curl package loaded already:
```r
Sys.setenv(PKG_CONFIG_PATH="/usr/local/opt/curl/lib/pkgconfig")
install.packages("curl", type = "source")
```

Afterwards confirm the version using `curl::curl_version()`.

## Development version

Because `devtools` and `httr` depend on `curl`, installing with `install_github` does not work well. The easiest way to install the development version of `curl` is a clean R session:
Expand Down

0 comments on commit 321e774

Please sign in to comment.