added hilite1
Browse files
globals.R
CHANGED
@@ -117,3 +117,17 @@ get_github_files <- function(repo_owner, repo_name, verbosity = 1) {
|
|
117 |
return(NULL)
|
118 |
}
|
119 |
} # rtemis::get_github_files
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
return(NULL)
|
118 |
}
|
119 |
} # rtemis::get_github_files
|
120 |
+
|
121 |
+
|
122 |
+
hilite1 <- function(text1, text2 = NULL,
|
123 |
+
infolink = NULL,
|
124 |
+
class = "rthilite1",
|
125 |
+
hiddenhr = FALSE, ...) {
|
126 |
+
div(
|
127 |
+
span(text1, style = "display:inline;font-weight:600;"),
|
128 |
+
if (!is.null(text2)) span(text2, style = "display:inline;font-weight:300;"),
|
129 |
+
if (!is.null(infolink)) infolink(infolink),
|
130 |
+
if (hiddenhr) hr(class = "hiddenhr"),
|
131 |
+
class = class, ...
|
132 |
+
)
|
133 |
+
}
|