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

Packages in R not loaded by using by mybinder #13

Open
eliselavy opened this issue Aug 1, 2024 · 4 comments
Open

Packages in R not loaded by using by mybinder #13

eliselavy opened this issue Aug 1, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@eliselavy
Copy link
Collaborator

Screenshot 2024-08-01 at 11 34 52

https://github.com/jdh-observer/FYjDViXVXggz/blob/master/install.R

@eliselavy eliselavy self-assigned this Aug 1, 2024
@eliselavy eliselavy added the bug Something isn't working label Aug 1, 2024
@eliselavy eliselavy changed the title Packages in R not loaded Packages in R not loaded by using by mybinder Aug 1, 2024
@eliselavy
Copy link
Collaborator Author

no problem by using the stack
Screenshot 2024-08-01 at 14 31 27

@eliselavy
Copy link
Collaborator Author

eliselavy commented Aug 1, 2024

In fact not all packages are loaded correctly

Screenshot 2024-08-01 at 14 45 20

# List of packages to check
packages <- c("magrittr", "lumberjack", "stringr", "dplyr", "data.table", "remotes", "bnosac/word2vec")

# Function to check if a package is installed
check_package <- function(pkg) {
  if (require(pkg, character.only = TRUE)) {
    message(pkg, " is installed and loaded correctly")
  } else {
    message(pkg, " is not installed or not loaded correctly")
  }
}

# Check each package
sapply(packages, check_package)

@eliselavy
Copy link
Collaborator Author

Screenshot 2024-08-01 at 14 53 09

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant