Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,19 @@ jobs:
- name: setup r-reticulate venv
shell: Rscript {0}
run: |

path_to_python <- reticulate::virtualenv_create(
envname = "r-reticulate",
python = Sys.which("python"), # placed on PATH by the setup-python action
packages = c(
"POT==0.9.1", "scikit-learn==1.3.1", "gudhi==3.8.0"
)
)

writeLines(sprintf("RETICULATE_PYTHON=%s", path_to_python),
Sys.getenv("GITHUB_ENV"))
install.packages("tensorflow")
tensorflow::install_tensorflow(
envname = "r-reticulate", version = "2.14-cpu"
)

- uses: r-lib/actions/check-r-package@v2
with:
Expand Down
29 changes: 27 additions & 2 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,34 @@ jobs:
with:
use-public-rspm: true

- name: Install reticulate
shell: Rscript {0}
run: |
install.packages("reticulate")

- uses: actions/setup-python@v4
with:
python-version: "3.9"

- name: setup r-reticulate venv
shell: Rscript {0}
run: |
path_to_python <- reticulate::virtualenv_create(
envname = "r-reticulate",
python = Sys.which("python"), # placed on PATH by the setup-python action
packages = c(
"POT==0.9.1", "scikit-learn==1.3.1",
"tensorflow==2.14.0", "gudhi==3.8.0"
)
)
writeLines(sprintf("RETICULATE_PYTHON=%s", path_to_python),
Sys.getenv("GITHUB_ENV"))

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::.
extra-packages: |
any::pkgdown
local::.
needs: website

- name: Build site
Expand All @@ -41,7 +66,7 @@ jobs:

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected].1
uses: JamesIves/[email protected].3
with:
clean: false
branch: gh-pages
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,19 @@ jobs:

- uses: actions/setup-python@v4
with:
python-version: "3.x"
python-version: "3.9"

- name: setup r-reticulate venv
shell: Rscript {0}
run: |

path_to_python <- reticulate::virtualenv_create(
envname = "r-reticulate",
python = Sys.which("python"), # placed on PATH by the setup-python action
packages = c(
"POT==0.9.1", "scikit-learn==1.3.1", "gudhi==3.8.0"
"POT==0.9.1", "scikit-learn==1.3.1",
"tensorflow==2.14.0", "gudhi==3.8.0"
)
)

writeLines(sprintf("RETICULATE_PYTHON=%s", path_to_python),
Sys.getenv("GITHUB_ENV"))

Expand Down
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Config/reticulate:
packages = list(
list(package = "POT", version = "0.9.1"),
list(package = "scikit-learn", version = "1.3.1"),
list(package = "tensorflow", version = "2.14.0"),
list(package = "gudhi", version = "3.8.0")
)
)
Expand Down
9 changes: 9 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ export(DiagramScaler)
export(DiagramSelector)
export(Entropy)
export(FeatureAgglomeration)
export(FlatPerslayPhi)
export(GaussianMixturePerslayWeight)
export(GaussianPerslayPhi)
export(GridPerslayWeight)
export(KMeans)
export(Landscape)
export(MaxAbsScaler)
Expand All @@ -34,6 +38,8 @@ export(PersistenceImage)
export(PersistenceScaleSpaceKernel)
export(PersistenceSlicedWassersteinKernel)
export(PersistenceWeightedGaussianKernel)
export(Perslay)
export(PowerPerslayWeight)
export(ProminentPoints)
export(RipsComplex)
export(RobustScaler)
Expand All @@ -46,6 +52,7 @@ export(SpectralCoclustering)
export(StandardScaler)
export(StrongWitnessComplex)
export(TangentialComplex)
export(TentPerslayPhi)
export(Tomato)
export(TopologicalVector)
export(WassersteinDistance)
Expand All @@ -59,6 +66,8 @@ export(is_persistence_diagram)
export(is_persistence_diagram_sample)
export(seq_circle)
export(sphere)
export(tf)
export(to_ragged_tensor)
export(torus)
importFrom(R6,R6Class)
importFrom(Rdpack,reprompt)
Expand Down
Loading