See https://insilecoinc.github.io/workshop_raster/
The following R packages are required :
sf
might be trickier to install, check out the README for guidelines to install it. Also, on for Ubuntu users, there is a comprehensive blog post for installing spatial packages.
Once installed, you can set your local environment, the following commands may prove helpful:
getwd()
to get the working directorysetwd()
to set the working directorydir.create()
to create a directorylist.files()
to liste files in a directory
also the following code can be used to download data and unzip them
download.file("https://github.com/inSilecoInc/workshop_raster/raw/main/data_and_script.zip", destfile = "tmp.zip")
unzip("tmp.zip")
unlink("tmp.zip") # remove temporary file