Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhard-da committed Jun 18, 2019
1 parent 60b6aa2 commit 7345d03
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 37 deletions.
45 changes: 29 additions & 16 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,42 @@ This package is developed within the SGA `Open source tools for perturbative con
We have a first rough version with which interested users may play around. Feedback (via issues) with regards to bugs or features requests are very welcome as well as pull-requests. One the package is deemed stable, a version will be released on CRAN too.

### Important Note:
As of versions `>= 0.17`, you need to use functionality of [`sdcHierarchies`](https://cran.r-project.org/package=sdcHierarchies) to setup hierarchies of your tables in `perturbTable()`. The following changes are possibly required in existing code.
Major parts of the package were rewritten in version `0.17` compared to previous versions. The following changes are now described:

- replace `ck_create_node()` with `hier_create()`
- replace `ck_add_nodes()` with `hier_add()`
- replace `ck_delete_nodes()` with `hier_delete()`
- replace `ck_rename_nodes()` with `hier_rename()`

- **Definition of hierarchies**
One main change is that it is now required to directly use functionality from [`sdcHierarchies`](https://cran.r-project.org/package=sdcHierarchies) to setup hierarchies when defining of tables. The following changes are possibly required in existing code.

- replace `ck_create_node()` with `hier_create()`
- replace `ck_add_nodes()` with `hier_add()`
- replace `ck_delete_nodes()` with `hier_delete()`
- replace `ck_rename_nodes()` with `hier_rename()`

- **Removing "abs"-input format**
For the sake of simplification, the differentiation between the *"abs"* and *"destatis"* format was removed. Internally, only the "destatis" format is used.

- **Removing possibility to perturb magnitude tables**
The feature to perturb continuously scaled variables (magnitude tables) was removed in version `0.17` of the package as the input format for perturbation tables is not yet finalized. Future versions of the package will gain the functionality to perturb magnitude tables again.

- **Simplification**
In order to simplify the application of the package, the process of defining, modifying and perturbing tables was modified. The implementation in versions `>=0.17` is based on `R6` classes and is described in detail in the new and package vignette that can be viewed after installation of the package using `ck_vignette()` or [**online**](https://sdctools.github.io/cellKey/articles/introduction.html).

### Installation
The package can directly be installed from `github` using the `remotes` package which is pulled in as a dependency from the `devtools` package. The following snippet installs the package:

```
# make sure that all packages are up-to-date
# update your R installation
update.packages(ask = FALSE)
# make sure that devtools-pkg is available
if (!require("devtools")) install.packages("devtools")
library(devtools)
# install cellKey from github.com
if (!requireNamespace("remotes", quietly = TRUE)) {
install.packages("remotes")
}
remotes::install_github(
repo = "sdcTools/cellKey",
force = TRUE,
build_opts = "--no-resave-data"
repo = "sdcTools/cellKey",
dependencies = TRUE,
build_opts = "--no-resave-data",
force = TRUE
)
```

Expand All @@ -47,13 +60,13 @@ httr::set_config(use_proxy(url = "xxx.xxx.xxx.xxx, port = yy))
```

### Usage
An example using both possible input formats for perturbation tables is given in the main function of the packge `perturbTable()`
An example on how to apply the package is provided in `?cellKey::cellkey_pkg` where also all the available methods are described.

```
?cellKey::perturbTable
?cellKey::cellkey_pkg
```

The package vignette is currently work-in-progress. It can be looked at using `cellKey::ck_vignette()` or via the automatically deployed documentation by clicking [**here**](https://sdctools.github.io/cellKey/articles/introduction.html). The complete [**documentation**](https://sdctools.github.io/cellKey/) is also updated automatically and can be browed online.
The package vignette is currently work-in-progress. It can be looked at using `cellKey::ck_vignette()` or via the automatically deployed documentation by clicking [**here**](https://sdctools.github.io/cellKey/articles/introduction.html). The complete [**documentation**](https://sdctools.github.io/cellKey/) is also updated automatically and can be viewed online.

### Updates
Updates/Changes are listed [**here**](https://sdcTools.github.io/cellKey/news/index.html).
66 changes: 45 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,34 +26,57 @@ stable, a version will be released on CRAN too.

### Important Note:

As of versions `>= 0.17`, you need to use functionality of
[`sdcHierarchies`](https://cran.r-project.org/package=sdcHierarchies) to
setup hierarchies of your tables in `perturbTable()`. The following
changes are possibly required in existing code.

- replace `ck_create_node()` with `hier_create()`
- replace `ck_add_nodes()` with `hier_add()`
- replace `ck_delete_nodes()` with `hier_delete()`
- replace `ck_rename_nodes()` with `hier_rename()`
Major parts of the package were rewritten in version `0.17` compared to
previous versions. The following changes are now described:

- **Definition of hierarchies** One main change is that it is now
required to directly use functionality from
[`sdcHierarchies`](https://cran.r-project.org/package=sdcHierarchies)
to setup hierarchies when defining of tables. The following changes
are possibly required in existing code.

- replace `ck_create_node()` with `hier_create()`
- replace `ck_add_nodes()` with `hier_add()`
- replace `ck_delete_nodes()` with `hier_delete()`
- replace `ck_rename_nodes()` with `hier_rename()`

- **Removing “abs”-input format** For the sake of simplification, the
differentiation between the *“abs”* and *“destatis”* format was
removed. Internally, only the “destatis” format is used.

- **Removing possibility to perturb magnitude tables** The feature to
perturb continuously scaled variables (magnitude tables) was removed
in version `0.17` of the package as the input format for
perturbation tables is not yet finalized. Future versions of the
package will gain the functionality to perturb magnitude tables
again.

- **Simplification** In order to simplify the application of the
package, the process of defining, modifying and perturbing tables
was modified. The implementation in versions `>=0.17` is based on
`R6` classes and is described in detail in the new and package
vignette that can be viewed after installation of the package using
`ck_vignette()` or
[**online**](https://sdctools.github.io/cellKey/articles/introduction.html).

### Installation

The package can directly be installed from `github` using the `remotes`
package which is pulled in as a dependency from the `devtools` package.
The following snippet installs the package:

# make sure that all packages are up-to-date
# update your R installation
update.packages(ask = FALSE)

# make sure that devtools-pkg is available
if (!require("devtools")) install.packages("devtools")
library(devtools)

# install cellKey from github.com
if (!requireNamespace("remotes", quietly = TRUE)) {
install.packages("remotes")
}
remotes::install_github(
repo = "sdcTools/cellKey",
force = TRUE,
build_opts = "--no-resave-data"
repo = "sdcTools/cellKey",
dependencies = TRUE,
build_opts = "--no-resave-data",
force = TRUE
)

If you experience a timeout due to a proxy server while downloading, one
Expand All @@ -64,17 +87,18 @@ can work around this issue by specifying the proxy-server using the

### Usage

An example using both possible input formats for perturbation tables is
given in the main function of the packge `perturbTable()`
An example on how to apply the package is provided in
`?cellKey::cellkey_pkg` where also all the available methods are
described.

?cellKey::perturbTable
?cellKey::cellkey_pkg

The package vignette is currently work-in-progress. It can be looked at
using `cellKey::ck_vignette()` or via the automatically deployed
documentation by clicking
[**here**](https://sdctools.github.io/cellKey/articles/introduction.html).
The complete [**documentation**](https://sdctools.github.io/cellKey/) is
also updated automatically and can be browed online.
also updated automatically and can be viewed online.

### Updates

Expand Down

0 comments on commit 7345d03

Please sign in to comment.