Skip to content

Commit f5ec9ef

Browse files
align with R version 0.6.1
1 parent ce8b49d commit f5ec9ef

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

BCN/BCNClassifier.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@
4444
subprocess.run(['mkdir', '-p', 'bcn_r'])
4545
utils.install_packages(StrVector(packages_to_install), lib_loc = StrVector(['bcn_r']))
4646
except Exception as e2:
47-
pass
47+
subprocess.run(["mkdir", "-p", "bcn_r"], check=True)
48+
command1 = "Rscript -e \"try(utils::install.packages(c('Rcpp', 'dfoptim'), lib='bcn_r', repos='https://cran.rstudio.com', dependencies = TRUE), silent=TRUE)\""
49+
subprocess.run(command1, shell=True, check=True)
50+
command2 = "Rscript -e \"try(utils::install.packages('bcn', lib='bcn_r', repos='https://techtonique.r-universe.dev', dependencies = TRUE), silent=TRUE)\""
51+
subprocess.run(command2, shell=True, check=True)
4852

4953
check_packages = True
5054

BCN/BCNRegressor.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@
4444
subprocess.run(['mkdir', '-p', 'bcn_r'])
4545
utils.install_packages(StrVector(packages_to_install), lib_loc = StrVector(['bcn_r']))
4646
except Exception as e2:
47-
pass
47+
subprocess.run(["mkdir", "-p", "bcn_r"], check=True)
48+
command1 = "Rscript -e \"try(utils::install.packages(c('Rcpp', 'dfoptim'), lib='bcn_r', repos='https://cran.rstudio.com', dependencies = TRUE), silent=TRUE)\""
49+
subprocess.run(command1, shell=True, check=True)
50+
command2 = "Rscript -e \"try(utils::install.packages('bcn', lib='bcn_r', repos='https://techtonique.r-universe.dev', dependencies = TRUE), silent=TRUE)\""
51+
subprocess.run(command2, shell=True, check=True)
4852

4953
check_packages = True
5054

HISTORY.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
History
33
=======
44

5-
0.6.0 (2024-01-24)
5+
0.6.1 (2024-01-25)
66
------------------
77

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

1011
0.5.3 (2023-08-10)
1112
------------------

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,6 @@ def install_r():
132132
test_suite='tests',
133133
tests_require=test_requirements,
134134
url='https://github.com/Techtonique/bcn_python',
135-
version='0.6.0',
135+
version='0.6.1',
136136
zip_safe=False,
137137
)

0 commit comments

Comments
 (0)