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

small improvements for CRAN checks #46

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
5 changes: 2 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: ggparty
Title: 'ggplot' Visualizations for the 'partykit' Package
Version: 1.0.0
Version: 1.0.1
Authors@R: c(
person("Martin", "Borkovec", role = c("aut", "cre"), email = "[email protected]"),
person("Niyaz", "Madin", role = c("aut"), email = "[email protected]"),
Expand All @@ -26,13 +26,13 @@ Imports:
utils,
checkmate,
methods,
survival,
rlang
Suggests:
testthat,
mlbench,
AER,
coin,
survival,
vdiffr,
knitr,
rmarkdown,
Expand All @@ -43,7 +43,6 @@ License: GPL-2 | GPL-3
URL: https://github.com/martin-borkovec/ggparty
BugReports: https://github.com/martin-borkovec/ggparty/issues
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 6.1.1
VignetteBuilder: knitr
4 changes: 4 additions & 0 deletions NEWS.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
title: "Changes"
output: rmarkdown::github_document
---
### version 1.0.1.

* small improvements in the DESCRIPTION etc. for CRAN checks.

### version 1.0.0.

* finalized DESCRIPTION etc. for CRAN submission
Expand Down
5 changes: 3 additions & 2 deletions vignettes/ggparty-graphic-partying.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ author: "Martin Borkovec"
date: "`r Sys.Date()`"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{ggparty}
%\VignetteIndexEntry{ggparty: Graphic Partying}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteDepends{ggparty,survival,pander}
%\VignetteEncoding{UTF-8}
---
<style>
Expand All @@ -29,7 +30,7 @@ to create clearly structured and highly customizable visualizations for tree-obj
Loading the **ggparty** package will also load **partykit** and **ggplot2** and thereby provide all necessary functions.

```{r}
library(ggparty)
library("ggparty")
```

## Motivating Example
Expand Down
11 changes: 6 additions & 5 deletions vignettes/on-the-edge.Rmd
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
---
title: "On The Edge"
title: "On the Edge"
author: "Martin Borkovec"
date: "`r Sys.Date()`"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{edges}
%\VignetteIndexEntry{On the Edge}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteDepends{ggparty,MASS}
%\VignetteEncoding{UTF-8}
---
<style>
Expand All @@ -30,7 +31,7 @@ First let's once more recreate the **WeatherPlay** tree. But this time we are go
level of **outlook** to "beta"

```{r, echo = T, message= FALSE}
library(ggparty)
library("ggparty")
data("WeatherPlay", package = "partykit")
levels(WeatherPlay$outlook)[1] <- c("beta")
sp_o <- partysplit(1L, index = 1:3)
Expand Down Expand Up @@ -137,7 +138,7 @@ In the presence of several levels for some splits we can use the argument `split


```{r}
library(MASS)
library("MASS")
SexTest <- ctree(sex ~ ., data = Aids2)
ggparty(SexTest) +
geom_edge() +
Expand All @@ -151,7 +152,7 @@ ggparty(SexTest) +

Alternatively the argument `max_length`provides an option to easily truncate the names of the levels.
```{r}
library(MASS)
library("MASS")
SexTest <- ctree(sex ~ ., data = Aids2)
ggparty(SexTest) +
geom_edge() +
Expand Down