Skip to content

Commit

Permalink
Merge pull request #183 from Lextuga007/spelling
Browse files Browse the repository at this point in the history
Minor changes for spelling and spacing
  • Loading branch information
RayStick authored Jan 28, 2025
2 parents aea7f97 + 8e35e6f commit 83beee2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions R/metadata_map.R
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion man/metadata_map.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vignettes/mapmetadata.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 83beee2

Please sign in to comment.