Skip to content

Commit 9bc8e29

Browse files
committed
move import where it is used
1 parent 0b82db3 commit 9bc8e29

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

R/render.R

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
#' `quarto.quiet` \R option or `QUARTO_R_QUIET` environment variable can be used to globally override a function call
4444
#' (This can be useful to debug tool that calls `quarto_*` functions directly).
4545
#'
46-
#' On Github Actions, it will always be `quiet=FALSE`.
46+
#' On Github Actions, it will always be `quiet = FALSE`.
4747
#' @param profile [Quarto project
4848
#' profile(s)](https://quarto.org/docs/projects/profiles.html) to use. Either
4949
#' a character vector of profile names or `NULL` to use the default profile.
@@ -57,8 +57,6 @@
5757
#' background jobs. Use the `quarto.render_as_job` \R option to control
5858
#' the default globally.
5959
#'
60-
#' @importFrom rmarkdown relative_to
61-
#'
6260
#' @examples
6361
#' \dontrun{
6462
#' # Render R Markdown

R/utils.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
#' @importFrom rmarkdown relative_to
12
relative_to_wd <- function(path) {
2-
relative_to(getwd(), path)
3+
rmarkdown::relative_to(getwd(), path)
34
}
45

56
#' @importFrom yaml write_yaml

0 commit comments

Comments
 (0)