-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed #8, changed loading method of conda environment
- Loading branch information
1 parent
5eec5a3
commit e75566e
Showing
8 changed files
with
28 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,18 +19,12 @@ | |
#' | ||
#' @author Alexander P. Christensen <[email protected]> | ||
#' | ||
#' @export | ||
#' | ||
# Install modules | ||
# Updated 13.04.2022 | ||
# Updated 11.12.2023 | ||
|
||
setup_modules <- function() | ||
{ | ||
Sys.setenv(TF_CPP_MIN_LOG_LEVEL = '3') | ||
# Check if transforEmotion conda env is being used | ||
if (!grepl("transforEmotion", reticulate::py_config()$python)) | ||
{ | ||
reticulate::use_condaenv("transforEmotion", required = TRUE) | ||
} | ||
|
||
# Install modules | ||
message("\nInstalling modules for 'transforEmotion'...") | ||
|
@@ -43,15 +37,9 @@ setup_modules <- function() | |
"transformers", | ||
"pytube", | ||
"pytz", | ||
"pandas", | ||
"opencv-python" | ||
), | ||
pip = TRUE | ||
) | ||
if (!check_python_libs()) | ||
{ | ||
stop("Not all Python libraries were installed correctly. Please try again.") | ||
} | ||
else { | ||
message("All Python libraries were installed correctly.") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters