Skip to content

makeup v1.1.0 check: 1 warning | 1 note #11

Description

@pablotis

Check

imagen

WARNING

> tools::showNonASCIIfile("R/locale.R")
44:     file_locale <- file_locale |> dplyr::filter(!.data$thousands %in% c("<d9><ac>", ".", ",", "\u0027")) # "<d9><ac>" es non-ASCII character

Va imágen porque GH convierte el símbolo:
imagen

NOTE

  1. guess_locale: no visible binding for global variable 'locale_summary':

locale_summary está definido en data-raw/DATASET.R pero no construído allí, por lo que lo silencie con comentario. Definir si es necesario y encontrar dónde se construye

  1. En R/strings.R la función makeup_chr() crea un objeto availabel_formats pero luego usa formats, que no existe.
    Al mismo tiempo usa el objeto to que nunca fue definido. Revisar si falta definir esos objetos o quedaron sin modificar a partir de los nuevos que figuran en la función:
makeup_chr <- function(v, sample = NULL, format = NULL){

  if(!is.null(format)){

    available_formats <- c("title","upper","lower","firstupper")

    if(!format %in% formats){
      stop("format must be one of: ", paste(formats, collapse = ", "))
    }

    fun <- paste0(to, format)
    return(do.call(fun, list(v)))
  }
  match_caps(v, sample)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions