Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.3.1 #178

Merged
merged 5 commits into from
Aug 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: xportr
Title: Utilities to Output CDISC SDTM/ADaM XPT Files
Version: 0.3.0
Version: 0.3.1
Authors@R:
c(
person(given = "Eli",
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export(xportr_metadata)
export(xportr_order)
export(xportr_type)
export(xportr_write)
export(xpt_validate)
import(haven)
import(rlang)
importFrom(cli,cli_alert_danger)
Expand Down
1 change: 1 addition & 0 deletions R/support-test.R
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ minimal_metadata <- function(dataset = FALSE,
#' @param `[environment(1)]`\cr Attach exit handlers to this environment. Typically, this should
#' be either the current environment or a parent frame
#' (accessed through parent.frame()).
#' @noRd
#' @keywords internal
local_cli_theme <- function(.local_envir = parent.frame()) {
cli_theme_tests <- list(
Expand Down
8 changes: 6 additions & 2 deletions R/utils-xportr.R
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,14 @@ xpt_validate_var_names <- function(varnames,

#' Validate Dataset Can be Written to xpt
#'
#' Function used to validate dataframes before they are sent to
#' `haven::write_xpt` for writing.
#'
#' @param data Dataset to be exported as xpt file
#'
#' @return xpt file
#' @noRd
#' @return Returns a character vector of failed conditions
#'
#' @export
xpt_validate <- function(data) {
err_cnd <- character()

Expand Down
3 changes: 1 addition & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ library(fontawesome)
<!-- badges: start -->
[<img src="https://img.shields.io/badge/Slack-RValidationHub-blue?style=flat&logo=slack">](https://RValidationHub.slack.com)
[![R build status](https://github.com/atorus-research/xportr/workflows/R-CMD-check/badge.svg)](https://github.com/atorus-research/xportr/actions?workflow=R-CMD-check)
[<img src="https://img.shields.io/codecov/c/github/atorus-research/xportr">](https://app.codecov.io/gh/atorus-research/xportr)
[<img src="https://img.shields.io/codecov/c/gh/atorus-research/xportr">](https://app.codecov.io/gh/atorus-research/xportr)
[<img src="https://img.shields.io/badge/License-MIT-blue.svg">](https://github.com/atorus-research/xportr/blob/master/LICENSE)
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental-1)
<!-- badges: end -->


Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@
[<img src="https://img.shields.io/badge/Slack-RValidationHub-blue?style=flat&logo=slack">](https://RValidationHub.slack.com)
[![R build
status](https://github.com/atorus-research/xportr/workflows/R-CMD-check/badge.svg)](https://github.com/atorus-research/xportr/actions?workflow=R-CMD-check)
[<img src="https://img.shields.io/codecov/c/github/atorus-research/xportr">](https://app.codecov.io/gh/atorus-research/xportr)
[<img src="https://img.shields.io/codecov/c/gh/atorus-research/xportr">](https://app.codecov.io/gh/atorus-research/xportr)
[<img src="https://img.shields.io/badge/License-MIT-blue.svg">](https://github.com/atorus-research/xportr/blob/master/LICENSE)
[![Lifecycle:
experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental-1)
<!-- badges: end -->

Welcome to `xportr`! We have designed `xportr` to help get your xpt
Expand Down Expand Up @@ -141,7 +139,7 @@ adsl %>%
xportr_length(var_spec, "ADSL", verbose = "warn") %>%
xportr_label(var_spec, "ADSL", verbose = "warn") %>%
xportr_order(var_spec, "ADSL", verbose = "warn") %>%
xportr_format(var_spec, "ADSL", verbose = "warn") %>%
xportr_format(var_spec, "ADSL") %>%
xportr_write("adsl.xpt", label = "Subject-Level Analysis Dataset")
```

Expand Down
17 changes: 0 additions & 17 deletions man/local_cli_theme.Rd

This file was deleted.

18 changes: 18 additions & 0 deletions man/xpt_validate.Rd

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

Loading