Skip to content

Commit

Permalink
bump to 0.4.8
Browse files Browse the repository at this point in the history
  • Loading branch information
yjunechoe committed Feb 7, 2022
1 parent 5f1b348 commit 3e673f7
Show file tree
Hide file tree
Showing 45 changed files with 384 additions and 66 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: ggtrace
Type: Package
Title: Programmatically debug ggproto methods with trace
Version: 0.4.7
Version: 0.4.8
Authors@R: c(
person(given = "June",
family = "Choe",
Expand Down
9 changes: 8 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
# ggtrace (development version)

# ggtrace 0.4.8

### New Features

- Added `with_ggtrace()` for a functional interface to `ggtrace()`
- Added `ggtrace_capture_(fn|env)` functions which returns a snapshot of the function/environment of the ggproto method at execution time
- Added `ggtrace_capture_fn()` and `ggtrace_capture_env()`, which return a snapshot of the function/environment of the ggproto method at execution time
- Added `ggtrace_inspect_return()` and `ggtrace_modify_return()` to grab and swap return values at method's execution

### Miscellaneous

- Added workflows section to docs/references

# ggtrace 0.4.7

Expand Down
2 changes: 1 addition & 1 deletion R/with_ggtrace.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Isolate a ggtrace call for a single ggplot object
#' Apply a ggtrace call to a single ggplot object
#'
#' `with_ggtrace()` provides a functional interface to `ggtrace()`. It takes a ggplot object
#' and parameters passed to `ggtrace()` and returns the immediate tracedump without side effects.
Expand Down
2 changes: 1 addition & 1 deletion R/workflows-modify.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#' @param cond When the return value should be replaced
#' @param draw Whether to draw the modified plot
#'
#' @return A gtable object
#' @return A gtable object with class `<ggtrace_modified>`
#' @export
#'
ggtrace_modify_return <- function(x, method, value, cond = TRUE, draw = TRUE) {
Expand Down
4 changes: 2 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ knitr::opts_chunk$set(
# **{ggtrace}**

<!-- badges: start -->
[![](https://img.shields.io/badge/devel%20version-0.4.7-gogreen.svg)](https://github.com/yjunechoe/ggtrace)
[![](https://img.shields.io/badge/devel%20version-0.4.8-gogreen.svg)](https://github.com/yjunechoe/ggtrace)
[![](https://img.shields.io/badge/lifecycle-stable-gogreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#maturing)
<!-- badges: end -->

Expand Down Expand Up @@ -63,7 +63,7 @@ remotes::install_github("yjunechoe/ggtrace")
```

```{r setup}
library(ggtrace) # v0.4.7
library(ggtrace) # v0.4.8
```

## **Example 1 - `compute_layer` method from `PositionJitter`**
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<!-- badges: start -->

[![](https://img.shields.io/badge/devel%20version-0.4.7-gogreen.svg)](https://github.com/yjunechoe/ggtrace)
[![](https://img.shields.io/badge/devel%20version-0.4.8-gogreen.svg)](https://github.com/yjunechoe/ggtrace)
[![](https://img.shields.io/badge/lifecycle-stable-gogreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#maturing)
<!-- badges: end -->

Expand Down Expand Up @@ -46,7 +46,7 @@ You can install the development version from
# install.packages("remotes")
remotes::install_github("yjunechoe/ggtrace")

library(ggtrace) # v0.4.7
library(ggtrace) # v0.4.8

## **Example 1 - `compute_layer` method from `PositionJitter`**

Expand Down
18 changes: 16 additions & 2 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,31 @@ reference:
- title: Workflows
desc: >
These function takes a ggplot object and a ggproto method, tracing and triggering
the method immediately without relying on side-effects
the method immediately without relying on side-effects. Most of these workflow
functions wraps around the lower-level function `with_ggtrace()`, a functional
complement to `ggtrace()`
contents:
- with_ggtrace

- subtitle: Inspect
desc: >
Inspect values from steps in the method's execution for examination
contents:
- ggtrace_inspect_return

- subtitle: Capture
desc: >
Return a snapshot of a ggproto method's execution
Capture a snapshot of a method's execution state for dynamic evaluation
contents:
- ggtrace_capture_fn
- ggtrace_capture_env

- subtitle: Modify
desc: >
Modify the method's behavior as it is executed and return the graphical output
contents:
- ggtrace_modify_return

- title: One-offs
desc: Convenient shortcuts to common workflows without side effects
contents:
Expand Down
2 changes: 1 addition & 1 deletion docs/404.html

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

2 changes: 1 addition & 1 deletion docs/LICENSE-text.html

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

2 changes: 1 addition & 1 deletion docs/LICENSE.html

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

16 changes: 8 additions & 8 deletions docs/articles/FAQ.html

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

2 changes: 1 addition & 1 deletion docs/articles/casestudy-after_scale.html

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

4 changes: 2 additions & 2 deletions docs/articles/casestudy-ggxmean.html

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

2 changes: 1 addition & 1 deletion docs/articles/comparisons.html

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

2 changes: 1 addition & 1 deletion docs/articles/index.html

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

2 changes: 1 addition & 1 deletion docs/articles/intro.html

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

2 changes: 1 addition & 1 deletion docs/articles/showcase-aes_evaluation.html

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

2 changes: 1 addition & 1 deletion docs/articles/showcase-ggplot_build.html

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

2 changes: 1 addition & 1 deletion docs/articles/technical-details.html

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

2 changes: 1 addition & 1 deletion docs/authors.html

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

6 changes: 3 additions & 3 deletions docs/index.html

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

20 changes: 15 additions & 5 deletions docs/news/index.html

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

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ articles:
showcase-aes_evaluation: showcase-aes_evaluation.html
showcase-ggplot_build: showcase-ggplot_build.html
technical-details: technical-details.html
last_built: 2022-02-06T00:15Z
last_built: 2022-02-07T13:55Z

Binary file modified docs/reference/Rplot001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/Rplot002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 3e673f7

Please sign in to comment.