Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdesmet committed Jul 18, 2024
1 parent 4c0d011 commit c2ffe3a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/col_types.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
#' @family parse functions
#' @noRd
cols <- function(schema) {
# Check schema
check_schema(schema)

# Get fields
fields <- schema$fields
field_names <- purrr::map_chr(fields, ~ purrr::pluck(.x, "name"))

Expand Down
3 changes: 3 additions & 0 deletions R/locale.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
#' @family parse functions
#' @noRd
locale <- function(package, resource_name) {
# Get resource, includes check_package()
resource <- get_resource(package, resource_name)

# Get fields
schema <- get_schema(package, resource_name)
fields <- schema$fields

Expand Down

0 comments on commit c2ffe3a

Please sign in to comment.