Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[R unit tests] Fix path and package installation #477

Open
gsvidaurre opened this issue Nov 19, 2024 · 0 comments
Open

[R unit tests] Fix path and package installation #477

gsvidaurre opened this issue Nov 19, 2024 · 0 comments
Assignees
Labels
bug Something isn't working after the full integration started

Comments

@gsvidaurre
Copy link
Collaborator

Fix the following:

  1. The path for unit testing needs to be generalized, ideally in the main script to run all unit tests
  2. The code to install packages if they're not already installed should updated to:

is_installed <- function(p) is.element(p, installed.packages()[,1])

invisible(lapply(1:length(X), function(x){
if(!is_installed(X[x])){
install.packages(X[x], repos = "http://lib.stat.cmu.edu/R/CRAN")
}
}))

@gsvidaurre gsvidaurre added the bug Something isn't working after the full integration started label Nov 19, 2024
@gsvidaurre gsvidaurre self-assigned this Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working after the full integration started
Projects
None yet
Development

No branches or pull requests

1 participant