Functions for writing css, pss, and site files from their respective objects.

write_css(css, path_prefix, latitude = NULL, longitude = NULL)

write_pss(pss, path_prefix, latitude = NULL, longitude = NULL)

write_site(site, path_prefix, latitude = NULL, longitude = NULL)

Arguments

css

css object (see read_css)

path_prefix

Desired path and prefix (without latitude and longitude)

latitude

Site latitude coordinate (default = NULL)

longitude

Site longitude coordinate (default = NULL)

pss

pss object (see read_pss)

site

site object (see read_site)

Value

Full file path as character, invisibly

Details

Latitude and longitude coordinates will be converted directly to character, without any changes to their precision. If they are NULL (default), the function assumes that lat and lon are already in the path_prefix, and if they are absent, the function will throw an error.