Skip to content

Commit a40dce0

Browse files
committed
temporarily insert the old function for reference
1 parent c9a39e3 commit a40dce0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

R/read.R

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@ read_cells <- function(drfile, sheet, variables, translate = FALSE, translations
4242
#' @return A named list. Values are coerced to character
4343
#' @noRd
4444
#'
45+
# THE OLD FUNCTION
46+
# read_keyvalue <- function(drfile, sheet, range, translate = FALSE, translations = NULL, atomicclass = "character", ...) {
47+
# keyvalue <- readxl::read_excel(drfile, sheet = sheet, range = range, col_names = c("key", "value"))
48+
# if (translate) {
49+
# keyvalue$key <- long_to_shortnames(keyvalue$key, translations)
50+
# }
51+
# kvlist <- lapply(keyvalue$value, coerce, atomicclass)
52+
# names(kvlist) <- keyvalue$key
53+
# kvlist
54+
# }
4555
read_keyvalue <- function(drfile, sheet, ranges, translate = FALSE, translations = NULL, atomicclass = "character", ...) {
4656

4757
chunks <- lapply(ranges, function(range) {

0 commit comments

Comments
 (0)