diff --git a/.github/workflows/build-r-package.yaml b/.github/workflows/build-r-package.yaml new file mode 100644 index 0000000000..4ee20a52d6 --- /dev/null +++ b/.github/workflows/build-r-package.yaml @@ -0,0 +1,18 @@ +name: Build plotly + +on: + workflow_dispatch: + push: + +jobs: + build: + name: Build plotly + permissions: + checks: write + contents: read + uses: Displayr/nixr-public/.github/workflows/build-flake-installable.yaml@master + with: + installable-path: pkgs.x86_64-linux.rPackages.plotly + build-args: --override-input displayr-plotly . + installable-name: plotly + secrets: inherit \ No newline at end of file diff --git a/package.nix b/package.nix deleted file mode 100644 index 50a068315b..0000000000 --- a/package.nix +++ /dev/null @@ -1,32 +0,0 @@ -{ pkgs ? import {}, displayrUtils }: - -pkgs.rPackages.buildRPackage { - name = "plotly"; - version = displayrUtils.extractRVersion (builtins.readFile ./DESCRIPTION); - src = ./.; - description = "Create interactive web graphics from 'ggplot2' graphs and/or a custom interface to the (MIT-licensed) JavaScript library 'plotly.js' inspired by the grammar of graphics."; - propagatedBuildInputs = with pkgs.rPackages; [ - ggplot2 - scales - httr - jsonlite - magrittr - digest - viridisLite - base64enc - htmltools - htmlwidgets - tidyr - RColorBrewer - dplyr - vctrs - tibble - lazyeval - rlang - crosstalk - purrr - data_table - promises - ]; - -}