-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcheck_source.Rd
39 lines (38 loc) · 1.16 KB
/
check_source.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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/check_source.R
\name{check_source}
\alias{check_source}
\title{Standardised test for an R source repository}
\usage{
check_source(x = ".", fail = !interactive())
}
\arguments{
\item{x}{Either a \code{checklist} object or a path to the source code.
Defaults to \code{.}.}
\item{fail}{Should the function return an error in case of a problem?
Defaults to \code{TRUE} on non-interactive session and \code{FALSE} on an interactive
session.}
}
\description{
A convenience function that runs test on a project with only \code{.R} and \code{.Rmd}
files.
The details section lists the relevant functions.
When you fixed a problem, you can speed things up by running only the related
check.
We still recommend to run \code{check_source()} before you push to GitHub.
And only push when the functions indicate that there are no problems.
This catches most problems before sending the code to GitHub.
}
\details{
List of checks in order:
\enumerate{
\item \code{check_lintr()}
\item \code{check_filename()}
}
}
\seealso{
Other project:
\code{\link{check_folder}()},
\code{\link{check_project}()}
}
\concept{project}