Skip to content

Commit

Permalink
more docs
Browse files Browse the repository at this point in the history
  • Loading branch information
maelle committed Nov 21, 2018
1 parent 200c361 commit 2ff2eef
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 3 deletions.
15 changes: 14 additions & 1 deletion R/external_setup.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
#' Set up the repo for the project
#' @param git_service git platform to use
#' @param login login for the git platform
#' @param protocol protocol to use
#' @param ci_activation how to activate CI stuff
#' @param project project name (repo name)
#' @param title project title (repo description)
#' @noRd

setup_repo <- function(git_service, login,
private, protocol,
ci_activation,
Expand Down Expand Up @@ -32,7 +41,11 @@ setup_repo <- function(git_service, login,
}
}


#' Add Travis badge to the README
#' @param login login (assumed to be the same for the git
#' platform and Travis)
#' @param name project name (repo name)
#' @noRd
add_travis_badge <- function(login, name) {
readme_path <- find_readme()
readme <- readLines(readme_path)
Expand Down
5 changes: 3 additions & 2 deletions R/github.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ repo_exists <- function(username, repo) {
}

#' check whether the repo name is ok i.e. not used
#' @username account name
#' @name repo name
#' @param username account name
#' @param name repo name
#' @noRd
check_github_name <- function(username, name) {
if (is.null(username)) {
return(invisible(TRUE))
Expand Down
4 changes: 4 additions & 0 deletions R/project_health.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#' Create project health report under health
#'
#' @details for current working directory.
#' Aimed at use on CI. It currently includes \code{goodpractice}
#' and \code{devtools::spell_check()} output.
#'
#' @export
#'
get_project_health <- function() {
Expand Down
6 changes: 6 additions & 0 deletions R/repo_status.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# nolint start
#' Available repostatus.org statuses
#' @noRd
statuses <- function() {
structure(list(status = c(
"abandoned", "active", "concept", "inactive",
Expand Down Expand Up @@ -39,6 +41,10 @@ statuses <- function() {
))
}
# nolint end

#' Add status badge to README of current project
#' @param status repostatus.org status
#' @noRd
add_repo_status <- function(status) {
statuses <- statuses()
if (!status %in% statuses$status) {
Expand Down
5 changes: 5 additions & 0 deletions man/get_project_health.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2ff2eef

Please sign in to comment.