Skip to content

Commit

Permalink
Implement support for clientside callbacks in Dash for R (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
rpkyle authored Oct 1, 2019
1 parent bbfc6cc commit 2e09789
Show file tree
Hide file tree
Showing 6 changed files with 310 additions and 207 deletions.
5 changes: 3 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ jobs:
echo "JOB PARALLELISM: ${CIRCLE_NODE_TOTAL}"
echo "CIRCLE_REPOSITORY_URL: ${CIRCLE_REPOSITORY_URL}"
echo $CIRCLE_JOB > circlejob.txt
git rev-parse HEAD | tr -d '\n' > commit.txt
- run:
name: 🚧 install R dependencies
command: |
sudo Rscript -e 'install.packages("remotes"); remotes::install_github("plotly/dashR", dependencies=TRUE, upgrade=TRUE); install.packages(".", type="source", repos=NULL)'
sudo Rscript -e 'commit_hash <- readChar("commit.txt", file.info("commit.txt")$size); message("Preparing to install plotly/dashR ", commit_hash, " ..."); install.packages("remotes"); remotes::install_github("plotly/dashR", upgrade=TRUE, ref=commit_hash, force=TRUE)'
- run:
name: ⚙️ Integration tests
Expand All @@ -36,7 +37,7 @@ jobs:
git clone --depth 1 https://github.com/plotly/dash.git
cd dash && pip install -e .[testing] --quiet && cd ..
export PATH=$PATH:/home/circleci/.local/bin/
pytest --cli-log-level DEBUG tests/integration/
pytest tests/integration/
- run:
name: 🔎 Unit tests
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ S3method(print,dash_component)
export(Dash)
export(dashNoUpdate)
export(createCallbackId)
export(clientsideFunction)
export(input)
export(output)
export(state)
Expand Down
Loading

0 comments on commit 2e09789

Please sign in to comment.