Skip to content

Commit

Permalink
Bug Fix GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
FBerding committed Jul 7, 2023
1 parent 1f8d26e commit 0f0f392
Showing 1 changed file with 25 additions and 23 deletions.
48 changes: 25 additions & 23 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,36 +59,38 @@ jobs:
run: |
library(reticulate)
relevant_modules<-c("numpy",
"transformers",
"tokenizers",
"datasets",
"torch",
"keras",
"tensorflow")
envname<-"r-reticulate"
conda_create(
envname = envname,
channel=c("conda-forge"),
conda=Sys.which("python")
)
conda_install(
packages = relevant_modules,
envname = envname,
conda = "auto",
pip = TRUE
)
python_packages<-c("numpy",
"transformers",
"tokenizers",
"datasets",
"torch",
"keras",
"tensorflow")
#envname<-"r-reticulate"
#conda_create(
# envname = envname,
# conda=Sys.which("python")
#)
#conda_install(
# packages = relevant_modules,
# envname = envname,
# conda = "auto",
# pip = TRUE
#)
#virtualenv_create("r-reticulate", Sys.which("python"))
#virtualenv_install("r-reticulate", python_packages)
#conda_create(envname="r-reticulate",
# conda=Sys.which("python"))
conda_create(envname="r-reticulate",
conda=Sys.which("python"))
#conda_install("r-reticulate", python_packages,pip=TRUE)
conda_install("r-reticulate",
python_packages,
pip=TRUE)
#aifeducation::install_py_modules("r-reticulate")
#path_to_python <- virtualenv_python("r-reticulate")
Expand Down

0 comments on commit 0f0f392

Please sign in to comment.