Package 'dataset.json.examples'

Title: Dataset-JSON Example Files
Description: An R data package providing a set of Dataset-JSON files comprising SDTM and ADaM datasets. Examples are originally from: <https://github.com/cdisc-org/DataExchange-DatasetJson>.
Authors: Ramiro Magno [aut, cre] , Pattern Institute [cph, fnd]
Maintainer: Ramiro Magno <[email protected]>
License: CC BY 4.0
Version: 0.0.1
Built: 2024-11-24 02:52:54 UTC
Source: https://github.com/ramiromagno/dataset.json.examples

Help Index


Dataset-JSON example file path

Description

example_path() retrieves the local path to the bundled Dataset-JSON example files. These files are compressed with xz.

Usage

example_path(name = NULL)

Arguments

name

The name of Dataset-JSON example. Run example_path() to check available options, e.g. example_path("ae").

Value

A character vector of absolute paths to Dataset-JSON example files.

Examples

example_path("ae")

example_path("adsl")

Uncompress xz

Description

unxz() decompresses a xz file into a new file.

Usage

unxz(from, to)

Arguments

from

A path to a xz file.

to

A path to a new file (uncompressed).

Value

This function is ran for its side effect of creating a new file and returns its path, i.e. to.

Examples

newfile <- file.path(tempdir(), "ae.json")
unxz(from = example_path("ae"), to = newfile)