sf_GPKG: Quick overwrite GPKG file

sf_GPKGR Documentation

Quick overwrite GPKG file

Description

Quick overwrite GPKG file

Usage

sf_GPKG(x, path = NULL, overwrite = TRUE)

Arguments

x

An sf object

path

Path for file as a string with folders created as required. When NULL, it defaults to "Processed" under the pwd. Any additional folders listed here will appear under "Processed". If only one subdirectory required, it can be a simple string (e.g. "Outputs" will create "Data/Outputs/") otherwise, a character vector (c("Outputs", "Maps") for "Data/Outputs/Maps") If you need to save outside the "Data" folder, use the relevant save function.

overwrite

The purpose of this function is to facilitate overwriting GPKG files. However, in some situations, it may be best to change this switch to FALSE for a prompt. If overwrite is rarely the desired outcome, use the default sf::st_write function.

Value

A GPKG file with the same name as x


AltfunsMA/cptools documentation built on Aug. 7, 2022, 5:44 p.m.