Skip to content

Commit 4f15651

Browse files
authored
Merge pull request #50 from gforge/develop
Updates for 3.0.0
2 parents 2383db1 + eff28a3 commit 4f15651

77 files changed

Lines changed: 3573 additions & 2303 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ cran-comments.md
88
^doc$
99
^Meta$
1010
^cran-comments\.md$
11+
^CRAN-SUBMISSION$

DESCRIPTION

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: forestplot
2-
Version: 2.0.2
2+
Version: 3.0.0
33
Title: Advanced Forest Plot Using 'grid' Graphics
44
Authors@R: c(person(given = "Max",
55
family = "Gordon",
@@ -23,19 +23,21 @@ Biarch: yes
2323
Depends:
2424
R (>= 3.5.0),
2525
grid,
26-
magrittr,
27-
checkmate
26+
checkmate,
27+
abind
2828
Suggests:
29-
testthat,
30-
abind,
29+
dplyr,
3130
knitr,
31+
purrr,
3232
rmarkdown,
3333
rmeta,
34-
dplyr,
34+
testthat,
35+
tibble,
3536
tidyr,
37+
tidyselect,
3638
rlang
3739
Encoding: UTF-8
3840
NeedsCompilation: no
3941
VignetteBuilder: knitr
40-
Roxygen: list()
41-
RoxygenNote: 7.1.1
42+
Roxygen: list(markdown = TRUE)
43+
RoxygenNote: 7.2.1

NAMESPACE

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,23 @@ export(fpDrawSummaryCI)
1717
export(fpLegend)
1818
export(fpShapesGp)
1919
export(fpTxtGp)
20+
export(fp_add_header)
21+
export(fp_align_center)
22+
export(fp_align_left)
23+
export(fp_align_right)
24+
export(fp_append_row)
25+
export(fp_decorate_graph)
26+
export(fp_insert_row)
27+
export(fp_set_style)
28+
export(fp_set_zebra_style)
29+
export(fp_txt_bold)
30+
export(fp_txt_gp)
31+
export(fp_txt_italic)
32+
export(fp_txt_plain)
2033
export(getTicks)
2134
export(prGetShapeGp)
2235
import(grid)
23-
import(magrittr)
36+
importFrom(abind,adrop)
2437
importFrom(checkmate,assert)
2538
importFrom(checkmate,assert_class)
2639
importFrom(checkmate,assert_matrix)

NEWS.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,25 @@
11
NEWS for the forestplot package
22

3-
Changes for 2.0.2
3+
Changes for 3.0.0
44
-----------------
5+
* The `forestplot()` now returns an object with raw data that can be manipulated
6+
by subsequent functions prior to plotting. All visual output is now generated
7+
during the actual generation of the graph - this allows saving the plot and
8+
plotting it when explicitly requested. BREAKING - this may be a breaking
9+
feature although most of the old syntax should work without much need for
10+
adaptation.
11+
* New additive syntax with:
12+
* Row manipulation: `fp_insert_row`, `fp_add_header`, and `fp_append_row`
13+
* Style functions: `fp_set_style`, `fp_set_zebra_style`, and `fp_decorate_graph`
14+
* Text styling: `fp_txt_bold`, `fp_txt_italic`, ...
15+
* Align functions: `fp_align_left`, `fp_align_center`, `fp_align_right`
16+
* Fixed bug with how grouped data frames are processed and presented.
17+
* Expressions are now allowed in data.frame tidyverse input.
18+
* Moved to native R-pipe operator (|> instead of %>%)
519
* Fixed case when all rows are summaries (Thanks Christian Röver)
20+
* Fixed automated ticks.
21+
* Fixed bug calculating graph width
22+
* Added graph decoration (fixes issue #11)
623

724
Changes for 2.0.1
825
-----------------

R/assertAndRetrieveTidyValue.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ assertAndRetrieveTidyValue <- function(x,
2424
stop(
2525
"You have not provided an argument",
2626
" and the data frame does not have a '", name, "' column: ",
27-
names(x) %>% paste(collapse = ", ")
27+
names(x) |> paste(collapse = ", ")
2828
)
2929
}
3030
return(structure(value, tidyFormat = TRUE))
@@ -33,7 +33,7 @@ assertAndRetrieveTidyValue <- function(x,
3333
# We are one-caller removed from the original call so we need to
3434
# do this nasty hack to get the parameter of the parent function
3535
orgName <- eval(substitute(substitute(value)), envir = parent.frame())
36-
tryCatch(dplyr::select(x, {{ orgName }}) %>% structure(tidyFormat = TRUE),
36+
tryCatch(dplyr::select(x, {{ orgName }}) |> structure(tidyFormat = TRUE),
3737
error = function(e) {
3838
return(structure(value,
3939
tidyFormat = FALSE

0 commit comments

Comments
 (0)