Skip to content

Commit

Permalink
#docs: example and ref blurb
Browse files Browse the repository at this point in the history
  • Loading branch information
bms63 committed Jun 16, 2023
1 parent 906c185 commit e188f50
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
11 changes: 11 additions & 0 deletions R/write.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@
#'
#' @return A data frame. `xportr_write()` returns the input data invisibly.
#' @export
#'
#' @examples
#' adsl <- data.frame(
#' Subj = as.character(123, 456, 789),
#' Different = c("a", "b", "c"),
#' Val = c("1", "2", "3"),
#' Param = c("param1", "param2", "param3")
#' )
#'
#' xportr_write(adsl, path = "adsl.xpt", label = "Subject-Level Analysis", strict_checks = FALSE)
#'
xportr_write <- function(.df, path, label = NULL, strict_checks = FALSE) {
path <- normalizePath(path, mustWork = FALSE)

Expand Down
8 changes: 5 additions & 3 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,27 @@ navbar:
aria-label: slack

reference:
- title: The six core xportr functions
- title: Core xportr functions
- contents:
- xportr_type
- xportr_length
- xportr_label
- xportr_write
- xportr_format
- xportr_order
- xportr_df_label
- xportr_metadata

- title: xportr helper functions
desc: Utility functions called within core xportr functions
- contents:
- label_log
- length_log
- type_log
- var_names_log
- var_ord_msg
- xportr_logger
- xportr_df_label
- xportr_metadata


- title: xportr example datasets and specification files
- contents:
Expand Down
11 changes: 11 additions & 0 deletions man/xportr_write.Rd

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

0 comments on commit e188f50

Please sign in to comment.