Skip to content

Commit 7d35e81

Browse files
authored
Merge pull request #667 from remlapmot/v0-6-29
TwoSampleMR 0.6.29
2 parents 2468a5e + 9a1ec63 commit 7d35e81

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: TwoSampleMR
22
Title: Two Sample MR Functions and Interface to MRC Integrative
33
Epidemiology Unit OpenGWAS Database
4-
Version: 0.6.28
4+
Version: 0.6.29
55
Authors@R: c(
66
person("Gibran", "Hemani", , "[email protected]", role = c("aut", "cre"),
77
comment = c(ORCID = "0000-0003-0920-1055")),

NEWS.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# TwoSampleMR v0.6.28
22

3-
(Release date 2025-12-15)
3+
(Release date 2025-12-16)
4+
5+
* Skip two tests if the **MendelianRandomization** package is not installed and protected the running of the perform_mr vignette.
6+
7+
# TwoSampleMR v0.6.28
8+
9+
(Release date 2025-12-16)
410

511
* Allowed the arguments for `clump_data()` to be specified from `read_exposure_data()` (thanks @al3xjwood).
612
* Fixed two function calls in `mr_moe_single()`

tests/testthat/test_otherformats.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ load(system.file("extdata", "test_commondata.RData", package = "TwoSampleMR"))
66

77
test_that("MRInput", {
88
skip_if(getRversion() < '4.4.0') # because MendelianRandomization will not be installed
9+
skip_if_not_installed("MendelianRandomization")
910
w <- dat_to_MRInput(dat, get_correlations = FALSE)
1011
expect_true(length(w) == 1)
1112
expect_true(class(w) == "list")
@@ -18,6 +19,7 @@ test_that("MRInput with cor", {
1819
skip_if_offline()
1920
skip_if_offline(host = "api.opengwas.io")
2021
skip_if(getRversion() < '4.4.0') # because MendelianRandomization will not be installed
22+
skip_if_not_installed("MendelianRandomization")
2123
w <- tryCatch(
2224
dat_to_MRInput(dat, get_correlations = TRUE)[[1]],
2325
error = skip("Server issues"),

vignettes/perform_mr.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ vignette: >
1313
---
1414

1515
```{r, include=FALSE}
16-
evalinr44 <- getRversion() >= '4.4.0'
16+
evalinr44 <- (getRversion() >= '4.4.0') && requireNamespace("MendelianRandomization", quietly = TRUE)
1717
knitr::opts_chunk$set(
1818
collapse = TRUE,
1919
comment = "#>",

0 commit comments

Comments
 (0)