Skip to content

Commit

Permalink
use CRAN release of vegawidget (#124)
Browse files Browse the repository at this point in the history
* bump version

* update to Vega 4.0.0

* update S3 methods to use altair v4 (vs v3)

patch gallery so examples work using v4

* Point remote to vegawidget master-branch

* update to new CRAN release of vegawidget

* roxygenize

* remove empty line
  • Loading branch information
ijlyttle authored Jan 23, 2020
1 parent e48276f commit 4912eb3
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 17 deletions.
8 changes: 3 additions & 5 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: altair
Version: 4.0.0.9000
Version: 4.0.0.9001
Title: Interface to 'Altair'
Description: Interface to 'Altair' <https://altair-viz.github.io>, which itself
is a 'Python' interface to 'Vega-Lite' <https://vega.github.io/vega-lite>.
Expand Down Expand Up @@ -41,7 +41,7 @@ Imports:
magrittr,
jsonlite,
utils,
vegawidget (>= 0.2.2.9000),
vegawidget (>= 0.3.1),
repr
Suggests:
httr,
Expand All @@ -63,6 +63,4 @@ Suggests:
png,
fs
Roxygen: list(markdown = TRUE)
RoxygenNote: 6.1.1
Remotes:
vegawidget/vegawidget
RoxygenNote: 7.0.2
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ to convert Altair charts into SVG strings or write SVG files. With the
**[png](https://CRAN.R-project.org/package=png)** packages installed,
you can get a bitmap array, or write PNG files.

When knitting to a non-HTML format, e.g. `github_document`, this package
When knitting to a non-HTML format, e.g. `github_document`, this package
provides a `knit_print()` function that will intercept the normal
renderer, using instead its own renderer, allowing you to specify
`"png"` , `"svg"` or `"pdf"`. Like the image functions, this requires
Expand Down Expand Up @@ -122,9 +122,9 @@ Some things to keep in mind:
- Where you see a `.` in the Python examples, use a `$` instead.

- In your data, columns that contain dots can be wrapped in square
brackets in Altair specifications, e.g. `[Sepal.Width]`, to keep
brackets in Altair specifications, e.g. `[Sepal.Width]`, to keep
Altair from throwing an error. Alternatively, you can use a
double-backslash, e.g. `Sepal\\.Width`.
double-backslash, e.g. `Sepal\\.Width`.

These and other “gotchas” are compiled, along with workarounds, in an
article: [Field Guide to Python
Expand All @@ -137,8 +137,7 @@ The documentation for this package includes some

- [Getting
Started](https://vegawidget.github.io/altair/articles/altair.html):
a walkthrough to get a first chart to
work
a walkthrough to get a first chart to work

- [Installation](https://vegawidget.github.io/altair/articles/installation.html):
some more-detailed instructions
Expand Down
1 change: 0 additions & 1 deletion man/altair.Rd

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

2 changes: 1 addition & 1 deletion man/figures/README-example-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 7 additions & 3 deletions man/install_altair.Rd

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

3 changes: 1 addition & 2 deletions man/knit_print.vegaspec.Rd

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

0 comments on commit 4912eb3

Please sign in to comment.