Skip to content

Commit d9a0fd2

Browse files
committed
Use Add rather than Assign
1 parent 6d4ab33 commit d9a0fd2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

R/col_types.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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),

R/resource.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)