Skip to content

Commit

Permalink
install Rcpp and dfoptim
Browse files Browse the repository at this point in the history
  • Loading branch information
thierrymoudiki committed Jan 24, 2024
1 parent ae99c34 commit 725c921
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
sudo apt-get install -y r-base
sudo apt-get install -y libssl-dev libcurl4-openssl-dev libxml2-dev
mkdir bcn_r
Rscript -e "try(utils::install.packages(c('Rcpp', 'dfoptim'), lib='./bcn_r', repos='https://cran.rstudio.com', dependencies = TRUE), silent=TRUE)"
Rscript -e "try(utils::install.packages('bcn', lib='./bcn_r', repos='https://techtonique.r-universe.dev', dependencies = TRUE), silent=TRUE)"
- name: Install Python Dependencies
Expand Down Expand Up @@ -67,4 +68,4 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_GLOBAL_BCN }}
repository-url: https://upload.pypi.org/legacy/
repository-url: https://upload.pypi.org/legacy/
2 changes: 1 addition & 1 deletion BCN/BCNClassifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

r['options'](warn=-1)

required_packages = ["bcn"] # list of required R packages
required_packages = ["Rcpp", "dfoptim", "bcn"] # list of required R packages

if all(rpackages.isinstalled(x) for x in required_packages):
check_packages = True # True if packages are already installed
Expand Down
2 changes: 1 addition & 1 deletion BCN/BCNRegressor.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

r['options'](warn=-1)

required_packages = ["bcn"] # list of required R packages
required_packages = ["Rcpp", "dfoptim", "bcn"] # list of required R packages

if all(rpackages.isinstalled(x) for x in required_packages):
check_packages = True # True if packages are already installed
Expand Down

0 comments on commit 725c921

Please sign in to comment.