Skip to content

Commit f2e5f01

Browse files
committed
Fix description length exceeding 100 characters for binary documentation
1 parent de1c130 commit f2e5f01

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

R/writers.R

+8-5
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,15 @@
3939
#' type = "text"
4040
#' )
4141
#'
42-
#' # Writing a binary file (base64-encoded content)
43-
#' write_file_content(
44-
#' content = "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==",
45-
#' file_path = "app/www/image.png",
46-
#' type = "binary"
42+
#' # Write text content
43+
#' write_file_content("Hello, World!", "example.txt")
44+
#'
45+
#' # Write base64 encoded image
46+
#' b64img <- paste0(
47+
#' "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAA",
48+
#' "DUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg=="
4749
#' )
50+
#' write_file_content(b64img, "test.png", decode_base64 = TRUE)
4851
#' }
4952
#'
5053
#' @keywords internal

man/write_file_content.Rd

+8-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)