This function reloads a specified R package. If the package is not already loaded, it attempts to load it. If the package is already loaded, it reloads the package from its library location. This can be useful during package development when changes are made to the package code. This function depends on the devtools::reload function.
Value
The function is used for its side effect of reloading a package rather than for its return value.
Examples
LoadPackages(sf)
ReloadPackage("sf")
#> ℹ Reloading attached sf
#> Linking to GEOS 3.12.1, GDAL 3.8.4, PROJ 9.4.0; sf_use_s2() is TRUE