Check.File | R Documentation |
If a file already exists in a given place, load that file
Check.File(FName, Dir = getwd(), loadFun, load = TRUE, verbose = TRUE)
FName |
File name |
Dir |
Directory where to look for file |
loadFun |
function with which to load filetype of FName |
load |
Logical. Whether to load the data or not |
verbose |
Logical. Whether to print/message function progress in console or not. |
Either a data object or NULL
KrigR::Check.File(
FName = basename(system.file("extdata", "CentralNorway.nc", package = "KrigR")),
Dir = dirname(system.file("extdata", "CentralNorway.nc", package = "KrigR")),
loadFun = terra::rast
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.