Skip to content

Commit

Permalink
minor edits as discussed in #103, add ChangeLog entry
Browse files Browse the repository at this point in the history
  • Loading branch information
eddelbuettel committed Aug 28, 2022
1 parent 6a6c9d3 commit 5f64d09
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
9 changes: 9 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
2022-08-28 Dirk Eddelbuettel <[email protected]>

* inst/examples/installBioc.r:

2022-08-24 Pieter Moris <[email protected]>

* inst/examples/installBioc.r: Generalization, extension and extra
features similar to how install2.r generalizes install2.r

2022-07-16 Dirk Eddelbuettel <[email protected]>

* inst/examples/r2u.r: Add simple r2u.r frontend
Expand Down
9 changes: 6 additions & 3 deletions inst/examples/installBioc.r
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
#
# Install a package from BioConductor
#
# Copyright (C) 2020 - Dirk Eddelbuettel
# Copyright (C) 2020 - 2022 Dirk Eddelbuettel
# Copyright (C) 2022 - 2022 Dirk Eddelbuettel and Pieter Moris
#
# Released under GPL (>= 2)

Expand Down Expand Up @@ -35,15 +36,17 @@ package 'BiocManger' which has be installed.
Examples:
installBioc.r -l /tmp/lib S4Vectors # install into given library
installBioc.r --update Biobase # install package and update older packages
installBioc.r --deps NA --error --skipinstalled # install package without suggested dependencies, throw an error on installation failure and skip packages that are already present
installBioc.r --deps NA --error --skipinstalled # install package without suggested dependencies,
# throw an error on installation failure and skip
# packages that are already present
installBioC.r is part of littler which brings 'r' to the command-line.
See http://dirk.eddelbuettel.com/code/littler.html for more information.\n")
q("no")
}

if (!requireNamespace("BiocManager", quietly=TRUE)) {
stop("Please install 'BiocManager' first, for example via 'install2.r BiocManager'.", call.=FALSE)
stop("Please install 'BiocManager' first, for example via 'install.r BiocManager'.", call.=FALSE)
}

## set repository to empty character vector if not supplied, since
Expand Down

0 comments on commit 5f64d09

Please sign in to comment.