Skip to content

Commit

Permalink
Fix example error
Browse files Browse the repository at this point in the history
  • Loading branch information
wenjie1991 committed Jul 7, 2024
1 parent 007c1b4 commit 6c07d25
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions R/lib.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ fd_plot = function(fdObj, id) {
#' @param recursive A logical value. If TRUE, the function creates the directory and its parent directories if they do not exist. If FALSE, the function creates the directory only if its parent directory exists.
#' @return An object of class `fdObj`
#' @examples
#' library(ggplot2)
#' ## create ggfigdone database in a temporary directory
#' db_dir = tempdir()
#'
Expand All @@ -72,6 +73,7 @@ fd_init = function(dir, recursive = TRUE) {
#' @param dir A character string of the directory path
#' @return An object of class `fdObj`
#' @examples
#' library(ggplot2)
#' ## create ggfigdone database in a temporary directory
#' db_dir = tempdir()
#' fd_init(db_dir)
Expand Down Expand Up @@ -122,6 +124,7 @@ fd_load = function(dir) {
#' @param id A character string of the figure id. If not provided, the function generates a random id. Otherwise, you can give an existing id to update the corresponding figure.
#' @return An object of class `fdObj`
#' @examples
#' library(ggplot2)
#'
#' ## Initial ggfigdone database using `fd_init`
#' db_dir = tempdir()
Expand Down
1 change: 1 addition & 0 deletions man/fd_add.Rd

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

1 change: 1 addition & 0 deletions man/fd_init.Rd

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

1 change: 1 addition & 0 deletions man/fd_load.Rd

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

5 changes: 4 additions & 1 deletion man/ggfigdone.Rd

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

0 comments on commit 6c07d25

Please sign in to comment.