Skip to content

Commit

Permalink
Tidying up old lettuce and improving coverage
Browse files Browse the repository at this point in the history
* Remove old lettuce (code with comments that isn't used anymore)
* remove utils.R file (for now) as it only had code in there that removed a .zip extensions, which isn't used anymore. This also takes our code coverage up to 100% 💫
  • Loading branch information
njtierney committed Mar 15, 2024
1 parent a42c6ee commit a709181
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 46 deletions.
35 changes: 0 additions & 35 deletions R/tar-terra-vect.R
Original file line number Diff line number Diff line change
@@ -1,38 +1,3 @@
# format_terra_vect_shapefile <- targets::tar_format(
# read = function(path) {
# terra::vect(
# paste0(
# "/vsizip/",
# file.path(
# path,
# replace_dot_zip_with_shp(path)
# )
# )
# )
# },
# write = function(object, path) {
# terra::writeVector(
# x = object,
# filename = replace_dot_zip_with_shp(path),
# filetype = "ESRI Shapefile",
# overwrite = TRUE
# )
# zf <- list.files(
# pattern = replace_dot_zip(
# x = path,
# replacement = ""
# )
# )
# utils::zip(
# zipfile = path,
# files = zf
# )
# unlink(zf)
# },
# marshal = function(object) terra::wrap(object),
# unmarshal = function(object) terra::unwrap(object)
# )

#' Targets format for terra vectors
#'
#' Provides targets format for `terra::vect` objects
Expand Down
11 changes: 0 additions & 11 deletions R/utils.R

This file was deleted.

0 comments on commit a709181

Please sign in to comment.