More cmd check updates

This commit is contained in:
ryantimpe
2019-08-22 13:17:08 -04:00
parent 1fe43718fd
commit 64b426f48e
6 changed files with 21 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
Package: brickr
Title: Tools to emulate the LEGO® System in R
Version: 0.1.0.9016
Version: 0.1.0.9018
Authors@R:
person(given = "Ryan",
family = "Timpe",
@@ -28,7 +28,10 @@ Suggests:
gridExtra,
png,
jpeg,
tibble
tibble,
raster,
rgdal,
stringr
Roxygen: list(markdown = TRUE)
RoxygenNote: 6.1.1
URL: https://github.com/ryantimpe/brickr

View File

@@ -10,13 +10,16 @@ NULL
## quiets concerns of R CMD check re: the .'s that appear in pipelines
if(getRversion() >= "2.15.1") {
utils::globalVariables(c(".", "aes", "alpha", "area_act", "area_tar", "B", "B_lego",
utils::globalVariables(c(".", ".value", "aes", "alpha", "area_act", "area_tar", "B", "B_lego",
"brick_name", "Brick_size", "brick_type", "brickr_themes", "brickrID",
"channel", "col2rgb", "Color", "color_hex", "dist", "G", "G_lego",
"ggproto", "hex", "lego", "Lego_color", "LEGO_color", "lego_colors",
"Lego_name", "Level", "Lum", "n", "offset_x", "offset_y", "Palette",
"R", "R_lego", "shade", "shade_bw", "size1", "size2", "stud",
"studs", "theme", "Tr", "TYPE", "user_color", "x", "x_mid", "x_scaled",
"xg", "xmax", "xmin", "xx", "y", "y_mid", "y_scaled", "yg", "ymax",
"channel", "col2rgb", "color", "Color", "color_hex", "dist",
"elevation", "G", "G_lego",
"ggproto", "height", "hex", "layer",
"lego", "Lego_color", "LEGO_color", "lego_colors",
"Lego_name", "Level", "lum", "Lum", "n", "offset_x", "offset_y", "Palette",
"R", "R_lego", "shade", "shade_bw", "size1", "size2",
"stud", "stud_id", "studs",
"theme", "Tr", "TYPE", "user_color", "x", "x_comp", "x_mid", "x_scaled",
"xg", "xmax", "xmin", "xx", "y", "y_comp", "y_mid", "y_scaled", "yg", "ymax",
"ymin", "yy", "z"))
}

View File

@@ -170,7 +170,7 @@ bricks_from_excel <- function(excel_table, repeat_levels = 1,
#' @family 3D Models
#' @export
#'
bricks_from_coords <- function(coord_table, color_guide = lego_colors,
bricks_from_coords <- function(coord_table,
increment_level = 0, max_level = Inf,
increment_x = 0, max_x = Inf,
increment_y = 0, max_y = Inf,

View File

@@ -38,7 +38,7 @@ build_colors <- function(.names_only = FALSE){
#' Display available brick themes for ggplot feature scale_fill_brick()
#'
#' Generates a plot of available brick themes.
#' @param show_theme Defaults to "all". Pass an array of theme names to only plot a subset.
#' @param show_themes Defaults to "all". Pass an array of theme names to only plot a subset.
#' @param .names_only Logical. Return an array of the theme names. Does not plot.
#' @return A table and ggplot of brick colors & ID numbers.
#' @examples

View File

@@ -5,7 +5,8 @@
#'
#' @inheritParams ggplot2::coord_fixed
#' @examples
#' #geom_brick_col should be used in conjunction with other brickr charting functions, especially coord_brick.
#' #geom_brick_col should be used in conjunction with other brickr charting
#' #functions, especially coord_brick.
#' df <- data.frame(trt = c("a", "b", "c"), outcome = c(2.3, 1.9, 3.2))
#' ggplot(df, aes(trt, outcome)) +
#' geom_brick_col(aes(fill = trt)) +

View File

@@ -13,7 +13,8 @@
#' @param min_radius_for_text Knob radius as a percentage of view port. If the calculated radius is lower than this value, embossed label will not appear in knobs.
#' @param position It it not recommended to use \code{position = "stack"}.
#' @examples
#' #geom_brick_col should be used in conjunction with other brickr charting functions, especially coord_brick.
#' #geom_brick_col should be used in conjunction with other brickr charting
#' #functions, especially coord_brick.
#' df <- data.frame(trt = c("a", "b", "c"), outcome = c(2.3, 1.9, 3.2))
#' ggplot(df, aes(trt, outcome)) +
#' geom_brick_col() +