File: github_releases.Rd

package info (click to toggle)
r-cran-xfun 0.20-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 680 kB
  • sloc: ansic: 242; sh: 22; makefile: 2
file content (29 lines) | stat: -rw-r--r-- 935 bytes parent folder | download
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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/io.R
\name{github_releases}
\alias{github_releases}
\title{Get the tags of Github releases of a repository}
\usage{
github_releases(repo, subpath = "", pattern = "(v[0-9.]+)")
}
\arguments{
\item{repo}{The repository name of the form \code{user/repo}, e.g.,
\code{"yihui/xfun"}.}

\item{subpath}{A character string to be appended to the URL of Github
releases (i.e., \verb{https://github.com/user/repo/releases/}). For
example, you may use \code{subpath = "latest"} to get the tag of the latest
release.}

\item{pattern}{A regular expression to extract the tags from the HTML source.
It must contain a group (i.e., must have a pair of parentheses).}
}
\value{
A character vector of (GIT) tags.
}
\description{
Read the HTML source of the release page and parse the tags of the releases.
}
\examples{
if (interactive()) xfun::github_releases("yihui/xfun")
}