-
Notifications
You must be signed in to change notification settings - Fork 74
/
Copy pathtar_condition.Rd
66 lines (53 loc) · 1.39 KB
/
tar_condition.Rd
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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils_condition.R
\name{tar_condition}
\alias{tar_condition}
\alias{tar_message_run}
\alias{tar_throw_file}
\alias{tar_throw_run}
\alias{tar_throw_validate}
\alias{tar_warn_deprecate}
\alias{tar_warn_run}
\alias{tar_warn_validate}
\alias{tar_message_validate}
\alias{tar_print}
\alias{tar_error}
\alias{tar_warning}
\alias{tar_message}
\title{Conditions}
\usage{
tar_message_run(...)
tar_throw_file(...)
tar_throw_run(..., class = character(0))
tar_throw_validate(...)
tar_warn_deprecate(...)
tar_warn_run(...)
tar_warn_validate(...)
tar_message_validate(...)
tar_print(...)
tar_error(message, class)
tar_warning(message, class)
tar_message(message, class)
}
\arguments{
\item{...}{zero or more objects which can be coerced to character
(and which are pasted together with no separator) or a single
condition object.}
\item{class}{Character vector of S3 classes of the message.}
\item{message}{Character of length 1, text of the message.}
}
\description{
These functions throw custom
\code{targets}-specific error conditions.
Useful for error handling in packages built on top of \code{targets}.
}
\examples{
try(tar_throw_validate("something is not valid"))
}
\seealso{
Other utilities to extend targets:
\code{\link{tar_assert}},
\code{\link{tar_language}},
\code{\link{tar_test}()}
}
\concept{utilities to extend targets}