Skip to content

Commit 0a9cc82

Browse files
committed
temporarily add code from old calling function for reference
1 parent a40dce0 commit 0a9cc82

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

R/read.R

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,25 @@ read_cells <- function(drfile, sheet, variables, translate = FALSE, translations
5252
# names(kvlist) <- keyvalue$key
5353
# kvlist
5454
# }
55+
#
56+
# THIS PART IS FROM THE OLD CALLING FUNCTION
57+
# if (!location$type == "cells") {
58+
# chunks <- lapply(location$ranges, function(range) {
59+
# read_function(drfile = drfile, sheet = location$sheet, range = range, translate = location$translate,
60+
# translations = guide$translations, atomicclass = atomicclass)
61+
# })
62+
# } else {
63+
# chunks <- read_cells(drfile = drfile, sheet = location$sheet, variables = location$variables, translate = location$translate,
64+
# translations = guide$translations, atomicclass = atomicclass)
65+
# }
66+
#
67+
# chunk <- switch(
68+
# location$type,
69+
# "keyvalue" = do.call(c, chunks),
70+
# "table" = dplyr::bind_rows(chunks),
71+
# "platedata" = suppressMessages(Reduce(dplyr::full_join, chunks)),
72+
# "cells" = chunks
73+
# )
5574
read_keyvalue <- function(drfile, sheet, ranges, translate = FALSE, translations = NULL, atomicclass = "character", ...) {
5675

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

0 commit comments

Comments
 (0)