This function takes a vector of landuse names and writes them to a .dat file. The file
will be written to the location specified by the name
argument. If the file
already exists, it will be overwritten. The file format is plain text, with each
line terminated by a newline character.
Examples
landuse_names(landuses = c("Agriculture", "Forest", "Urban"))
#> used (Mb) gc trigger (Mb) max used (Mb)
#> Ncells 1662065 88.8 3056375 163.3 3056375 163.3
#> Vcells 3002823 23.0 12413039 94.8 10996699 83.9
# delete the file so the test on cran can pass this
file.remove("Problem.dat")
#> [1] TRUE