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

error message using R 4.3.1 #12

Open
tolitsmagadia opened this issue Oct 1, 2023 · 3 comments
Open

error message using R 4.3.1 #12

tolitsmagadia opened this issue Oct 1, 2023 · 3 comments

Comments

@tolitsmagadia
Copy link

Third command line in Chapter 1 gives the following:

install_sand_packages()
Error: With R version 3.5 or greater, install Bioconductor packages using BiocManager; see https://bioconductor.org/install

I have installed latest version of BiocManager but don't know which Bioconductor packages are needed to run the rest of the chapters although those that depend on igraph work perfectly fine.

@gaborcsardi
Copy link
Collaborator

Unfortunately that function does not work anyt more. You can install dependencies like this:

pkgs <- strsplit(packageDescription("sand")$Suggests, "[, \n]+")[[1]]
# networkTomography was archived and does not build on newer R
pkgs <- setdiff(pkgs, "networkTomography")
pak::pkg_install(pkgs)

@tolitsmagadia
Copy link
Author

Installing...

ℹ Building GenomeInfoDbData 1.2.10
Installing...

Error:
! error in pak subprocess
Caused by error:
! Could not find tools necessary to compile a package
Call pkgbuild::check_build_tools(debug = TRUE) to diagnose the problem.
Type .Last.error to see the more details.

@gaborcsardi
Copy link
Collaborator

Yes, to build R packages from source you need to install Rtools on Windows, and the Xcode command line tools on macOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants