Skip to content

Commit

Permalink
avoid renaming export tables #11
Browse files Browse the repository at this point in the history
  • Loading branch information
jsta committed Jul 13, 2020
1 parent 71d8e90 commit 3b7ccaf
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

* Updated DEPTH module version to 0.1

## BREAKING CHANGES

* The names of nearly all data tables have changed to exactly match LAGOSUS schema.

## MINOR IMPROVEMENTS

* `coordinatize` function has a default projection (#12)
Expand Down
18 changes: 9 additions & 9 deletions R/ingest.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ lagos_ingest <- function(locus_version = NA, locus_folder = NA,
include.dirs = TRUE, full.names = TRUE),
sep = ",", dictionary = locus_dictionary)

locus <- list(locus_link = locus_link,
locus_characteristics = locus_characteristics,
locus_watersheds = locus_watersheds,
locus_information = locus_information,
locus_dictionary = locus_dictionary,
locus_source = locus_source
locus <- list(lake_link = locus_link,
lake_characteristics = locus_characteristics,
lake_watersheds = locus_watersheds,
lake_information = locus_information,
data_dictionary_locus = locus_dictionary,
source_table_locus = locus_source
)

return(locus)
Expand All @@ -68,16 +68,16 @@ lagos_ingest <- function(locus_version = NA, locus_folder = NA,
# Importing LAGOS depth data ####

depth_dictionary <- load_lagos_txt(
list.files(depth_folder, pattern = "taxonomy.csv",
list.files(depth_folder, pattern = "data_dictionary.*.csv",
include.dirs = TRUE, full.names = TRUE),
na.strings = c(""), sep = ",")

depth <- load_lagos_txt(
list.files(depth_folder, pattern = "lake_depth.csv",
include.dirs = TRUE, full.names = TRUE), sep = ",")

depth <- list(depth = depth,
depth_dictionary = depth_dictionary)
depth <- list(lake_depth = depth,
data_dictionary_depth = depth_dictionary)

return(depth)
}
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ lagosus_compile(
locus_version = "1.1",
locus_folder = "~/Downloads/LAGOSUS_LOCUS/LOCUS_v1.1",
depth_version = "0.1",
depth_folder = "~/Downloads/LAGOSUS_DEPTH",
depth_folder = "~/Downloads/LAGOSUS_DEPTH/DEPTH_v0.1",
dest_folder = lagosus_path())
```

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ lagosus_compile(
locus_version = "1.1",
locus_folder = "~/Downloads/LAGOSUS_LOCUS/LOCUS_v1.1",
depth_version = "0.1",
depth_folder = "~/Downloads/LAGOSUS_DEPTH",
depth_folder = "~/Downloads/LAGOSUS_DEPTH/DEPTH_v0.1",
dest_folder = lagosus_path())
```

Expand Down

0 comments on commit 3b7ccaf

Please sign in to comment.