Skip to content

Commit 7259fb2

Browse files
committed
add suffix and prefix arguments
1 parent 822544c commit 7259fb2

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

R/check_hints.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
#'
33
#' @param hint_text hint paragraph texts; can contain markdown
44
#' @param hint_title hint title texts; can contain markdown
5-
#' @param hint_prefix string that added to each hint_title to the left side
6-
#' @param hint_suffix string that added to each hint_title to the right side
5+
#' @param hint_title_prefix string that added to each hint_title to the left side
6+
#' @param hint_title_suffix string that added to each hint_title to the right side
77
#' @param hint_id unique identidier for each hint
88
#' @param list_title unique identidier for each hint
99
#'
@@ -29,7 +29,7 @@ check_hints <- function(hint_text,
2929
list_title = "Click here to see/close the list of hints",
3030
hint_id){
3131
if(knitr::is_html_output()){
32-
hint_text <- paste0(hint_prefix, hint_text, hint_suffix)
32+
hint_title <- paste0(hint_title_prefix, hint_title, hint_title_suffix)
3333
df <- data.frame(hint_text, hint_title, stringsAsFactors = FALSE)
3434
df$hint_id <- sample(2:1e5, nrow(df))
3535

man/check_hints.Rd

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)