Skip to content

Commit

Permalink
refactor: remove yaml dependency and enhance documentation
Browse files Browse the repository at this point in the history
Removed the 'yaml' package from the list of imports in DESCRIPTION file as it's no longer needed. Also, enhanced the documentation in gmhleasr-package.Rd by adding useful links for users. In utils_schemas.R, removed a line that was reading a yaml file which is not required anymore and adjusted indentation for better readability.
  • Loading branch information
jimbrig committed Aug 21, 2024
1 parent c3d7571 commit df20cbe
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
1 change: 0 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ Imports:
tibble (>= 3.2.1),
tools,
utils,
yaml (>= 2.3.9),
ymlthis (>= 0.1.7)
Suggests:
here,
Expand Down
3 changes: 1 addition & 2 deletions R/utils_schemas.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,10 @@ yaml_to_json <- function(yaml) {
return(json)

}
yaml <- yaml::read_yaml("config.yml")

yaml_to_list <- function(yaml) {

if (!ymlthis:::is_yml(yaml))
return(yaml)
return(yaml)

}
9 changes: 9 additions & 0 deletions man/gmhleasr-package.Rd

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

0 comments on commit df20cbe

Please sign in to comment.