Skip to content

Commit d922808

Browse files
committed
fix csv guess_max in case passed through ocs
1 parent e5b940d commit d922808

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

inst/metadata/entity/entity_handler_csv.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ handle_entities_csv <- function(handler, source, config, handle = TRUE){
33

44
#read csv TODO -> options management: sep, encoding etc
55
#source <- read.csv(source,stringsAsFactors = F)
6-
source <- as.data.frame(readr::read_csv(source, guess_max = handler$getOption("guess_max")))
6+
guess_max = handler$getOption("guess_max")
7+
if(is.null(guess_max)) guess_max = 0
8+
source <- as.data.frame(readr::read_csv(source, guess_max = guess_max))
79
if(!handle) return(source)
810

911
#apply generic handler

0 commit comments

Comments
 (0)