Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document the language selection process of gdef #24

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Description: A glossary of data science terms in multiple languages
Encoding: UTF-8
LazyData: true
License: MIT + file LICENSE
RoxygenNote: 7.1.1
RoxygenNote: 7.1.2
Depends:
R (>= 2.10)
Imports:
Expand Down
2 changes: 1 addition & 1 deletion R/entry.R
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ Glossary <- R6::R6Class("Glossary",
validate_glossary_uri(glossary_path)
raw_glossary <- list(
uri = glossary_path,
entries = yaml::read_yaml(glossary_path)
entries = yaml::read_yaml(glossary_path, eval.expr = FALSE)
)
}

Expand Down
5 changes: 5 additions & 0 deletions R/gdef.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
#' Generate anchor tag for a given term in HTML
#'
#'
#' @param term Look-up key
#' @param text Text to display
#'
#' @note If you set up a language key in the glosario section of the YAML header,
#' the function will read this key and link to the correct language. If no
#' language key is provided the function will default to English.
#'
#' @return string containing link
#'
#' @export
Expand Down
5 changes: 5 additions & 0 deletions man/gdef.Rd

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

2 changes: 1 addition & 1 deletion man/get_glossary.Rd

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