Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: TwoSampleMR
Title: Two Sample MR Functions and Interface to MRC Integrative
Epidemiology Unit OpenGWAS Database
Version: 0.6.28
Version: 0.6.29
Authors@R: c(
person("Gibran", "Hemani", , "g.hemani@bristol.ac.uk", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-0920-1055")),
Expand Down
8 changes: 7 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# TwoSampleMR v0.6.28

(Release date 2025-12-15)
(Release date 2025-12-16)

* Skip two tests if the **MendelianRandomization** package is not installed and protected the running of the perform_mr vignette.

# TwoSampleMR v0.6.28

(Release date 2025-12-16)

* Allowed the arguments for `clump_data()` to be specified from `read_exposure_data()` (thanks @al3xjwood).
* Fixed two function calls in `mr_moe_single()`
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test_otherformats.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ load(system.file("extdata", "test_commondata.RData", package = "TwoSampleMR"))

test_that("MRInput", {
skip_if(getRversion() < '4.4.0') # because MendelianRandomization will not be installed
skip_if_not_installed("MendelianRandomization")
w <- dat_to_MRInput(dat, get_correlations = FALSE)
expect_true(length(w) == 1)
expect_true(class(w) == "list")
Expand All @@ -18,6 +19,7 @@ test_that("MRInput with cor", {
skip_if_offline()
skip_if_offline(host = "api.opengwas.io")
skip_if(getRversion() < '4.4.0') # because MendelianRandomization will not be installed
skip_if_not_installed("MendelianRandomization")
w <- tryCatch(
dat_to_MRInput(dat, get_correlations = TRUE)[[1]],
error = skip("Server issues"),
Expand Down
2 changes: 1 addition & 1 deletion vignettes/perform_mr.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ vignette: >
---

```{r, include=FALSE}
evalinr44 <- getRversion() >= '4.4.0'
evalinr44 <- (getRversion() >= '4.4.0') && requireNamespace("MendelianRandomization", quietly = TRUE)
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
Expand Down