diff --git a/R/metadata_map.R b/R/metadata_map.R index 69d20f3..5ae0ec7 100755 --- a/R/metadata_map.R +++ b/R/metadata_map.R @@ -16,7 +16,7 @@ select.list <- NULL #' Example inputs are provided within the package data, for the user to run this #' function in a demo mode. #' @param metadata_file This should be a csv download from HDRUK gateway -#' (0_Dataset_Structural_Metadata.csv). Deafult is 'data/metadata.rda' - run +#' (0_Dataset_Structural_Metadata.csv). Default is 'data/metadata.rda' - run #' '?metadata' to see how it was created. #' @param domain_file This should be a csv file created by the user, with each #' domain on a separate line, no header. Default is 'data/domain_list.rda' @@ -121,7 +121,7 @@ metadata_map <- function( ## Check if look_up_file and domain_file are compatible mistmatch <- setdiff(data$lookup$domain_code, df_plots$code$code) if (length(mistmatch) > 0) { - cli_alert_danger("The look_up_file and domain_file are not compatabile. These look up codes are not listed in the domain codes:") + cli_alert_danger("The look_up_file and domain_file are not compatible. These look up codes are not listed in the domain codes:") cat("\n") print(mistmatch) stop() diff --git a/README.md b/README.md index b8af648..342a1b5 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ Currently, the recommended way of retrieving these metadata files is to download ## Using a custom domain list input (recommended) -You can replace the default demo domains with research-specific domains. Remember any domain file input will have Codes 0,1,2 and 3 automatically appended to the start of the domain list, so do not include these in your domain list. +You can replace the default demo domains with research-specific domains. Remember any domain file input will have Codes 0, 1, 2 and 3 automatically appended to the start of the domain list, so do not include these in your domain list. ## Using a custom lookup table input (advanced) diff --git a/man/metadata_map.Rd b/man/metadata_map.Rd index cc1fc2f..43219e8 100644 --- a/man/metadata_map.Rd +++ b/man/metadata_map.Rd @@ -15,7 +15,7 @@ metadata_map( } \arguments{ \item{metadata_file}{This should be a csv download from HDRUK gateway -(0_Dataset_Structural_Metadata.csv). Deafult is 'data/metadata.rda' - run +(0_Dataset_Structural_Metadata.csv). Default is 'data/metadata.rda' - run '?metadata' to see how it was created.} \item{domain_file}{This should be a csv file created by the user, with each diff --git a/vignettes/mapmetadata.Rmd b/vignettes/mapmetadata.Rmd index ae178a7..919bd76 100644 --- a/vignettes/mapmetadata.Rmd +++ b/vignettes/mapmetadata.Rmd @@ -47,7 +47,7 @@ You will see this in the R console: `Press 'Esc' key to finish here, or press any other key to continue with mapping variables` -Pressing any key will move you to the mapping phase. Demo mode (run by `metadata_map()`) only processes the fist 20 data elements (variables) in the selected table. +Pressing any key will move you to the mapping phase. Demo mode (run by `metadata_map()`) only processes the first 20 data elements (variables) in the selected table. ``` Enter your initials: rs