Skip to content

Commit af2c185

Browse files
committed
Merge branch 'master' of https://github.com/ropensci/plotly into fix/bar-coord-flip
2 parents c263da9 + 7e26c0f commit af2c185

File tree

5 files changed

+33
-31
lines changed

5 files changed

+33
-31
lines changed

.Rbuildignore

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
.travis.yml
2-
Karthik_local.R
3-
Makefile
4-
man-roxygen
5-
man-roxygen/^.*\.Rproj$
62
^.*\.Rproj$
73
^\.Rproj\.user$
84
^data-raw$
9-
vignettes/margins.sty
105
CONDUCT.md
6+
CONTRIBUTING.md

.gitignore

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
R/.Rhistory
21
Rapp.history
3-
/Karthik_local.R
42
*~
5-
.Rhistory
6-
.RData
7-
Makefile
8-
.Rproj.user
3+
*.Rhistory
4+
*.RData
5+
*.Rproj.user

.travis.yml

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,39 @@
11
language: c
2+
sudo: false
23

3-
before_install:
4-
- curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh
5-
- chmod 755 ./travis-tool.sh
6-
- ./travis-tool.sh bootstrap
7-
# password is encrypted below
8-
- echo "Sys.setenv('plotly_username' = 'RTestBot3000')" > ~/.Rprofile
4+
addons:
5+
apt:
6+
sources:
7+
- r-packages-precise
8+
packages:
9+
- r-base-dev
10+
- r-recommended
11+
- qpdf
12+
13+
env:
14+
- NOT_CRAN=true R_LIBS_USER=~/R/library
15+
global:
16+
# plotly_api_key (for posting to plot.ly)
17+
- secure: "UAETDsmeXkXm9eUpZa3JTm8/cv+jyLmArXE0TQD0yQNICFNPkGeNergoQmkesRqG+ifLu6V1lPXu1XlqQPdXY60clUHThDN+AjsBmcv9F170k6RtBSV8pIKL9fsW8t0v/maEet86qOSf3cNa5+gK8GjBH1pmLrN2rF9r7RhwUdg="
18+
# GITHUB_PAT (for pushing to plotly-test-table)
19+
- secure: "LHJONgWOo+98vNeFLI7LSJU3RtbMVszlI79GB8CcXmc2mlgM/UtZ5b6RnkNlhmg3Gj1/uObfm/rIybVTwuS1yNpeKv73+gsZOYhobVXiUGVxdRFG/mg5mbqwyWkkuofjPGFlMZCEMgHim37eZzgjSibwVH1LClRDsCoFMCgvgV0="
920

10-
install:
11-
- ./travis-tool.sh install_deps
21+
cache:
22+
directories:
23+
$R_LIBS_USER
1224

1325
before_script:
14-
- git config --global user.name "cpsievert"
15-
- git config --global user.email "cpsievert1@gmail.com"
26+
- mkdir -p "$R_LIBS_USER"
27+
- echo "Sys.setenv('plotly_username' = 'RTestBot3000')" > ~/.Rprofile
1628
- git clone https://github.com/cpsievert/plotly-test-table.git ../plotly-test-table
29+
- "wget -q -O - https://github.com/yihui/crandalf/raw/master/inst/scripts/install-pandoc | bash"
30+
- Rscript -e 'if (length(find.package("devtools", quiet = TRUE)) == 0L) { install.packages("devtools", repos = "http://cran.rstudio.com") }'
31+
- Rscript -e 'library(devtools);update_packages("devtools", repos = "http://cran.rstudio.com")'
32+
- Rscript -e 'library(devtools);install_deps(repos = "http://cran.rstudio.com", dependencies = TRUE)'
1733

1834
script:
19-
- Rscript -e "devtools::install(); source('tests/testthat.R', chdir = TRUE)"
35+
- Rscript -e 'devtools::install(); source("tests/testthat.R", chdir = T)'
2036

2137
after_success:
2238
- cd ../plotly-test-table
2339
- Rscript ../plotly/inst/build-push-comment.R
24-
25-
env:
26-
global:
27-
# plotly_api_key (for posting to plot.ly)
28-
- secure: "UAETDsmeXkXm9eUpZa3JTm8/cv+jyLmArXE0TQD0yQNICFNPkGeNergoQmkesRqG+ifLu6V1lPXu1XlqQPdXY60clUHThDN+AjsBmcv9F170k6RtBSV8pIKL9fsW8t0v/maEet86qOSf3cNa5+gK8GjBH1pmLrN2rF9r7RhwUdg="
29-
# GITHUB_PAT (for pushing to plotly-test-table)
30-
- secure: "LHJONgWOo+98vNeFLI7LSJU3RtbMVszlI79GB8CcXmc2mlgM/UtZ5b6RnkNlhmg3Gj1/uObfm/rIybVTwuS1yNpeKv73+gsZOYhobVXiUGVxdRFG/mg5mbqwyWkkuofjPGFlMZCEMgHim37eZzgjSibwVH1LClRDsCoFMCgvgV0="

man/plot_ly.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/testthat/test-plotly-getfigure.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ test_that("can add traces to a subplot figure", {
3434
fig <- get_figure('chelsea_lyn', 6366)
3535
p <- add_trace(fig, x=c(1, 2, 3), y=c(4, 2, 4))
3636
l <- plotly_build(p)
37-
expect_equivalent(length(fig$data) + 1, length(l$data))
37+
expect_equivalent(length(plotly_build(fig)$data) + 1, length(l$data))
3838
})
3939

0 commit comments

Comments
 (0)