Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update How to Install and Use Geospatial R Packages.md #113

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ This document aims to provide users of R in Posit Workbench guidance on how to c
- [{raster}](https://rspatial.github.io/raster/reference/raster-package.html)
- [{leaflet}](https://rstudio.github.io/leaflet/)

Please note: {rgdal} has now been retired from CRAN and has therefore been removed from this documentation. However, versions of {leaflet} >= 2.2.0 do not depend on this package. To avoid dependency on obsolete packages, older versions should only be installed if strictly necessary. Please try to use the most up-to-date versions wherever possible.
> Please note:
> * {rgdal} has now been retired from CRAN and has therefore been removed from this documentation. However, versions of {leaflet} >= 2.2.0 do not depend on this package. To avoid dependency on obsolete packages, older versions should only be installed if strictly necessary. Please try to use the most up-to-date versions wherever possible.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
> * {rgdal} has now been retired from CRAN and has therefore been removed from this documentation. However, versions of {leaflet} >= 2.2.0 do not depend on this package. To avoid dependency on obsolete packages, older versions should only be installed if strictly necessary. Please try to use the most up-to-date versions wherever possible.
> * `{rgdal}` has now been retired from CRAN and removed from this documentation. Versions of `{leaflet}` >= 2.2.0 do not depend on this package. Older versions should only be installed if strictly necessary to avoid dependency on obsolete packages. Please try to use the most up-to-date versions wherever possible.

> * The `{mapview}` package is unable to be run on POSIT workbench (as of 20th June 2024).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
> * The `{mapview}` package is unable to be run on POSIT workbench (as of 20th June 2024).
> * The `mapshot()` and `mapshot2()` functions from `{mapview}` do not work on the Posit Workbench (as of 20th June 2024). This is because neither `{webshot}` nor `{webshot2}` will work.


## Setting environment variables

Expand Down Expand Up @@ -51,7 +53,7 @@ Sys.setenv("GDAL_DATA" = "/usr/gdal34/share/gdal")

Geospatial R packages must be compiled and installed from source, rather than as binary files. The reason for this is that the packages need to know where the geospatial libraries are installed in the underlying Linux operating system. A simple call of the `install.packages()` function will not suffice. As such, please follow the instructions below exactly.

### Step 1 - Remove geospatial R packages and their dependencies (if installed)
### Step 1 - Remove geospatial R packages and their dependencies

```r
# List of geospatial packages that will be installed
Expand Down