This repository has been archived by the owner on May 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
05b3822
commit 5c15f16
Showing
6 changed files
with
51 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,12 @@ Maintainer: Laurent Gatto <[email protected]> | |
Description: Miscellaneous helper functions aimed at facilitating and | ||
standardising simple repetitive tasks. | ||
Imports: grDevices, graphics, utils, scales | ||
Suggests: testthat | ||
Suggests: | ||
testthat, | ||
BiocStyle, | ||
httr, | ||
knitr, | ||
rmarkdown | ||
License: GPL-3 | ||
RoxygenNote: 5.0.1 | ||
VignetteBuilder: knitr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
##' Return the CPU webpage url. | ||
##' | ||
##' @title Return the CPU webpage url. | ||
##' @return The URL as a \code{character} | ||
##' @author Laurent Gatto | ||
##' @rdname | ||
##' @examples | ||
##' cpuwww() | ||
cpuwww <- function() | ||
"[Computational Proteomics Unit](http://cpu.sysbiol.cam.ac.uk/)" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
test_that("cputools", { | ||
test_that("Bioconductor version numbers", { | ||
v <- biocVersions() | ||
## update me for every new release | ||
v0 <- c("3.4", "3.5") | ||
names(v0) <- c("release", "devel") | ||
expect_identical(v, v0) | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
context("Computational Proteomics Unit") | ||
|
||
test_that("CPU www", { | ||
x <- cpuwww() | ||
expect_identical(x, | ||
"[Computational Proteomics Unit](http://cpu.sysbiol.cam.ac.uk/)") | ||
url <- gsub("^.+\\((.+)\\)", "\\1", x) | ||
got <- httr::GET(url) | ||
expect_identical(got, stop_for_status(got)) | ||
}) |