Skip to content

Commit

Permalink
align with R version 0.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
thierrymoudiki committed Jan 25, 2024
1 parent ce8b49d commit f5ec9ef
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
6 changes: 5 additions & 1 deletion BCN/BCNClassifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@
subprocess.run(['mkdir', '-p', 'bcn_r'])
utils.install_packages(StrVector(packages_to_install), lib_loc = StrVector(['bcn_r']))
except Exception as e2:
pass
subprocess.run(["mkdir", "-p", "bcn_r"], check=True)
command1 = "Rscript -e \"try(utils::install.packages(c('Rcpp', 'dfoptim'), lib='bcn_r', repos='https://cran.rstudio.com', dependencies = TRUE), silent=TRUE)\""
subprocess.run(command1, shell=True, check=True)
command2 = "Rscript -e \"try(utils::install.packages('bcn', lib='bcn_r', repos='https://techtonique.r-universe.dev', dependencies = TRUE), silent=TRUE)\""
subprocess.run(command2, shell=True, check=True)

check_packages = True

Expand Down
6 changes: 5 additions & 1 deletion BCN/BCNRegressor.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@
subprocess.run(['mkdir', '-p', 'bcn_r'])
utils.install_packages(StrVector(packages_to_install), lib_loc = StrVector(['bcn_r']))
except Exception as e2:
pass
subprocess.run(["mkdir", "-p", "bcn_r"], check=True)
command1 = "Rscript -e \"try(utils::install.packages(c('Rcpp', 'dfoptim'), lib='bcn_r', repos='https://cran.rstudio.com', dependencies = TRUE), silent=TRUE)\""
subprocess.run(command1, shell=True, check=True)
command2 = "Rscript -e \"try(utils::install.packages('bcn', lib='bcn_r', repos='https://techtonique.r-universe.dev', dependencies = TRUE), silent=TRUE)\""
subprocess.run(command2, shell=True, check=True)

check_packages = True

Expand Down
3 changes: 2 additions & 1 deletion HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
History
=======

0.6.0 (2024-01-24)
0.6.1 (2024-01-25)
------------------

* Add `n_clusters` parameter to `fit` method, to allow for a different number of clusters (for now, only k-means)
* Avoid division by zero when scaling the data

0.5.3 (2023-08-10)
------------------
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,6 @@ def install_r():
test_suite='tests',
tests_require=test_requirements,
url='https://github.com/Techtonique/bcn_python',
version='0.6.0',
version='0.6.1',
zip_safe=False,
)

0 comments on commit f5ec9ef

Please sign in to comment.