Skip to content

Commit 48b8db7

Browse files
committed
Add message if mr.raps less than 0.4.3
1 parent ce595bb commit 48b8db7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

R/mr.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,6 +1079,10 @@ mr_raps <- function(b_exp, b_out, se_exp, se_out, parameters = default_parameter
10791079
)
10801080
}
10811081

1082+
if (utils::packageVersion('mr.raps') < '0.4.3') {
1083+
message(paste("The version of mr.raps is", utils::packageVersion('mr.raps'), "please consider updating to version 0.4.3 or higher, e.g., install.packages('mr.raps', repos = c('https://mrcieu.r-universe.dev', 'https://cloud.r-project.org')) "))
1084+
}
1085+
10821086
data <- data.frame(
10831087
beta.exposure = b_exp,
10841088
beta.outcome = b_out,

0 commit comments

Comments
 (0)