-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathinteractions_deps.R
More file actions
82 lines (79 loc) · 2.98 KB
/
interactions_deps.R
File metadata and controls
82 lines (79 loc) · 2.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#' @title Deprecated interaction functions
#' @description These functions are now part of the `interactions`
#' package.
#' @param ... arguments are ignored
#' @rdname interactions_deprecated
#' @rawNamespace
#' if (!nzchar(system.file(package = "interactions"))) {
#' export(interact_plot)
#' }
interact_plot <- function(...) {
if (!nzchar(system.file(package = "interactions"))) {
stop_wrap("This function has been moved to the interactions package.
Please download it and amend your R scripts as necessary.")
} else {
do.call(get("interact_plot", asNamespace("interactions")),
as.list(match.call(get("interact_plot",
asNamespace("interactions"))))[-1])
}
}
#' @rdname interactions_deprecated
#' @rawNamespace
#' if (!nzchar(system.file(package = "interactions"))) {
#' export(cat_plot)
#' }
cat_plot <- function(...) {
if (!nzchar(system.file(package = "interactions"))) {
stop_wrap("This function has been moved to the interactions package.
Please download it and amend your R scripts as necessary.")
} else {
do.call(get("cat_plot", asNamespace("interactions")),
as.list(match.call(get("cat_plot",
asNamespace("interactions"))))[-1])
}
}
#' @rdname interactions_deprecated
#' @rawNamespace
#' if (!nzchar(system.file(package = "interactions"))) {
#' export(sim_slopes)
#' }
sim_slopes <- function(...) {
if (!nzchar(system.file(package = "interactions"))) {
stop_wrap("This function has been moved to the interactions package.
Please download it and amend your R scripts as necessary.")
} else {
do.call(get("sim_slopes", asNamespace("interactions")),
as.list(match.call(get("sim_slopes",
asNamespace("interactions"))))[-1])
}
}
#' @rdname interactions_deprecated
#' @rawNamespace
#' if (!nzchar(system.file(package = "interactions"))) {
#' export(johnson_neyman)
#' }
johnson_neyman <- function(...) {
if (!nzchar(system.file(package = "interactions"))) {
stop_wrap("This function has been moved to the interactions package.
Please download it and amend your R scripts as necessary.")
} else {
do.call(get("johnson_neyman", asNamespace("interactions")),
as.list(match.call(get("johnson_neyman",
asNamespace("interactions"))))[-1])
}
}
#' @rdname interactions_deprecated
#' @rawNamespace
#' if (!nzchar(system.file(package = "interactions"))) {
#' export(probe_interaction)
#' }
probe_interaction <- function(...) {
if (!nzchar(system.file(package = "interactions"))) {
stop_wrap("This function has been moved to the interactions package.
Please download it and amend your R scripts as necessary.")
} else {
do.call(get("probe_interaction", asNamespace("interactions")),
as.list(match.call(get("probe_interaction",
asNamespace("interactions"))))[-1])
}
}