File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ cols <- function(schema) {
1616
1717 # Create col_types
1818 col_types <- purrr :: map(fields , field_to_col )
19- # Assign names: list("name1" = <collector_character>, "name2" = ...)
19+ # Add names: list("name1" = <collector_character>, "name2" = ...)
2020 names(col_types ) <- field_names
2121
2222 # Replicate structure of readr::col_spec
@@ -44,7 +44,7 @@ field_to_col <- function(field) {
4444 bare_number <- if (field $ bareNumber %|| % " " != FALSE ) TRUE else FALSE
4545 format <- field $ format %|| % " default" # Undefined => default
4646
47- # Assign types and formats
47+ # Add types and formats
4848 col_type <- switch (
4949 type ,
5050 " string" = col_string(enum ),
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ resource <- function(package, resource_name) {
4747 )
4848 }
4949
50- # Assign data_location attribute (based on path, then df, then data)
50+ # Add data_location attribute (based on path, then df, then data)
5151 if (length(resource $ path ) != 0 ) {
5252 if (all(is_url(resource $ path ))) {
5353 data_location <- " url"
You can’t perform that action at this time.
0 commit comments