Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit 16d9b0e

Browse files
authored
Merge pull request #91 from dieterich-lab/bugfix/r_depdendencies_fail_with_r4
Fix and clarification for the R dependencies
2 parents 0c1182f + 35580d7 commit 16d9b0e

2 files changed

Lines changed: 11 additions & 9 deletions

File tree

docs/Installation.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ The default installation will install everything needed to run circtools *except
1919

2020
.. code-block:: bash
2121
22-
pip3 install circtools --user # does not require root access, installation to local user directory
22+
pip3 install circtools --user
2323
24-
.. code-block:: bash
25-
26-
pip3 install circtools # will require root access and globally install circtools
24+
Please note:
2725

26+
* The required R libraries will be installed in the default location in your home directory - unless you set enviromnet variable $R_LIBS_USER.
27+
* In case want to install globally or into a dedicated 'venv' drop the --user option.
2828

2929
Installation from GitHub
3030
--------------------------

scripts/install_R_dependencies.R

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,15 @@ options(repos = c(CRAN = "https://cran.uni-muenster.de/"))
4949
# check if devtools is already installed
5050
pkgs <- pkgs[!pkgs %in% installed.packages()[,1]]
5151

52-
print("R minor version:")
52+
minorVersion <- as.numeric(strsplit(version[['minor']], '')[[1]][[1]])
53+
majorVersion <- as.numeric(strsplit(version[['major']], '')[[1]][[1]])
5354

54-
print(as.numeric(strsplit(version[['minor']], '')[[1]][[1]]) )
55-
56-
# new installer caller for R >3.6.0
57-
if (as.numeric(strsplit(version[['minor']], '')[[1]][[1]]) >= 6){
55+
print(paste("R version: ", majorVersion, ".", minorVersion, sep=""))
5856

57+
if (
58+
majorVersion >= 4
59+
|| ( majorVersion == 3 && minorVersion >= 6 )
60+
){
5961
if (!requireNamespace("BiocManager", quietly = TRUE))
6062
install.packages("BiocManager")
6163

0 commit comments

Comments
 (0)