diff --git a/.Rbuildignore b/.Rbuildignore index 52ebb35..029154d 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -2,3 +2,6 @@ ^\.Rproj\.user$ ^CONDUCT\.md$ ^.github$ +^funcgeo\.Rcheck$ +^funcgeo.*\.tar\.gz$ +^funcgeo.*\.tgz$ diff --git a/.gitignore b/.gitignore index 5b6a065..f551cd7 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,6 @@ .Rhistory .RData .Ruserdata +funcgeo.Rcheck/ +funcgeo*.tar.gz +funcgeo*.tgz diff --git a/DESCRIPTION b/DESCRIPTION index 4cfddf2..5adc0bd 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: funcgeo Type: Package Title: Functional Geometry in R -Version: 0.2.1.9000 +Version: 0.2.1.9001 Authors@R: person("Matthew", "Henderson", email = "matthew.james.henderson@gmail.com", role = c("aut", "cre")) Description: Peter Henderson's Functional Geometry in R. @@ -9,6 +9,6 @@ License: MIT + file LICENSE Imports: grid Encoding: UTF-8 -RoxygenNote: 7.2.3 +RoxygenNote: 7.3.1 URL: https://github.com/mhenderson/funcgeo BugReports: https://github.com/mhenderson/funcgeo/issues diff --git a/R/rot.R b/R/rot.R index 6101a5d..f57f1db 100644 --- a/R/rot.R +++ b/R/rot.R @@ -1,8 +1,12 @@ -#' Rotate a grob. +#' Rotate a picture #' -#' @param g A grob +#' `rot` returns a new picture, made by rotating the input picture. If no angle +#' is specified then the new picture will be rotated 90 degrees. A different +#' angle can be specified with the `angle` argument. +#' +#' @param g A `grid::grob` picture #' @param angle An angle -#' @return Rotated grob +#' @return A rotated `grid::grob` picture #' @export rot <- function(g, angle = 90) { grid::editGrob(g, vp = grid::viewport( diff --git a/man/rot.Rd b/man/rot.Rd index ecd57a5..ce6d603 100644 --- a/man/rot.Rd +++ b/man/rot.Rd @@ -2,18 +2,20 @@ % Please edit documentation in R/rot.R \name{rot} \alias{rot} -\title{Rotate a grob.} +\title{Rotate a picture} \usage{ rot(g, angle = 90) } \arguments{ -\item{g}{A grob} +\item{g}{A `grid::grob` picture} \item{angle}{An angle} } \value{ -Rotated grob +A rotated `grid::grob` picture } \description{ -Rotate a grob. +`rot` returns a new picture, made by rotating the input picture. If no angle +is specified then the new picture will be rotated 90 degrees. A different +angle can be specified with the `angle` argument. }