This repository contains the contents from MSGIC workshop hosted on October 23rd, 2024.
The majority of the workshop focuses on the use of the {arcgis}
metapackage. First, you must install the R packages.
install.packages(
"arcgis",
repos = c("https://r-arcgis.r-universe.dev", "https://cloud.r-project.org")
)
For more information, see our installation instructions here.
Additional packages that will be used in the workshop:
install.packages(c("shiny", "bslib", "leaflet", "bsicons", "dplyr", "ggplot2", "plotly", "lubridate"))
If you are familiar with Git and GitHub, please clone or fork the repository.
Otherwise, download the folder using this link.
- Unzip the
main.zip
folder in a location you can find again.- Give the folder a meaningful name e.g.
2024-10-23-msgic
- Give the folder a meaningful name e.g.
- Open RStudio
- Create a new project from Existing Directory
- Select the folder you unzipped
You now how an RStudio project for this workshop.
This workshop assumes you have an ArcGIS Online account with the ability to publish content.
You can get a 21 day trial here.
These steps below are described in detail on the documentation site Authentication Overview, Storing Credentials, and Authenticating with R.
- Open the
.Renviron
file - Replace
yourusername
with the username you use to login to ArcGIS Online - Replace
yourpassword
with the password you use to sign into ArcGIS Online - Optionally, if you use ArcGIS Enterprise, uncomment
ARCGIS_HOST
and provide the url of your portal. - Save the file
- Restart R