Skip to content

Commit 9f856e0

Browse files
author
Lindsay Carr
authored
Merge pull request #465 from jread-usgs/camelCase
camelCase changes per #464
2 parents d2c9a3d + 2cab104 commit 9f856e0

File tree

13 files changed

+41
-27
lines changed

13 files changed

+41
-27
lines changed

NAMESPACE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export(is.gsplot)
3737
export(legend)
3838
export(lim)
3939
export(lines)
40-
export(loadConfig)
40+
export(load_config)
4141
export(logged)
4242
export(mtext)
4343
export(par)
@@ -52,8 +52,8 @@ export(theme.packers)
5252
export(title)
5353
export(view)
5454
export(view_info)
55-
export(whatDate)
56-
export(whatVersion)
55+
export(what_date)
56+
export(what_version)
5757
export(xlab)
5858
export(xlim)
5959
export(ylab)

R/access-gsplot.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ view_info <- function(object){
267267
#' @param object a gsplot object
268268
#' @return The date the gsplot object was created.
269269
#' @export
270-
whatDate <- function(object){
270+
what_date <- function(object){
271271
date_created <- object$metadata$created
272272
return(date_created)
273273
}
@@ -279,7 +279,7 @@ whatDate <- function(object){
279279
#' @param object a gsplot object
280280
#' @return The gsplot version number.
281281
#' @export
282-
whatVersion <- function(object){
282+
what_version <- function(object){
283283
version_created <- object$metadata$gsplot.version
284284
return(version_created)
285285
}

R/axis.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ axis <- function(object, ...) {
6969
#' @param tcl.minor tick length for minor ticks (used if \code{n.minor} > 0). Use NA (the default) to have this
7070
#' calculated automatically as half of the value for \code{par('tcl')} at the time of rendering the axis.
7171
#' @param reverse flip the orientation of the axis?
72+
#' @rdname axis
7273
#' @param append replace or append an existing axis for this side (logical)
7374
axis.gsplot <- function(object, ..., n.minor=0, tcl.minor=NA, reverse=NULL, append=FALSE) {
7475

R/config.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ clear_par <- function(){
2121
#' @param filename string to custom file
2222
#'
2323
#'@examples
24-
#'loadConfig()
24+
#'load_config()
2525
#'@export
2626
#' @importFrom graphics plot.xy
2727
#' @importFrom grDevices dev.off
2828
#' @importFrom graphics par
2929
#' @importFrom yaml yaml.load_file
30-
loadConfig = function(filename) {
30+
load_config = function(filename) {
3131

3232
if(missing(filename)){
3333
filename <- system.file("extdata", "default.yaml", package = "gsplot")
@@ -84,7 +84,7 @@ config <- function(type, ..., persist=FALSE, custom.config = FALSE){
8484
type <- match.arg(type, choices = allowedTypes)
8585

8686
if (is.null(gsconfig$options)) {
87-
loadConfig()
87+
load_config()
8888
}
8989

9090
if(custom.config){

R/gsplot-class.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#' object. Defaults to calling \code{packageDescription()}. Output class matches that of the input.
1010
#' @param config.file path to the file that will only be used for setting
1111
#' par in this one gsplot object. If \code{NA} (default), par is set by the global options set by
12-
#' loadConfig().
12+
#' load_config().
1313
#' @param theme There are several built in themes (see \link{Themes}). Additionally, the user can create a \code{gsplot}
1414
#' object in their workspace. This argument then takes the name of that object (either built-in or custom).
1515
#' If \code{NA} (default), no theme is used.

inst/doc/gsplotIntro.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969

7070
<h1 class="title toc-ignore">Introduction to gsplot.</h1>
7171
<h4 class="author"><em>Jordan Read, Laura DeCicco, Jordan Walker, Phethala Thongsavanh, Lindsay Carr</em></h4>
72-
<h4 class="date"><em>22 March, 2017</em></h4>
72+
<h4 class="date"><em>24 March, 2017</em></h4>
7373

7474

7575
<div id="TOC">

man/axis.Rd

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/gsplot.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/whatDate.Rd renamed to man/what_date.Rd

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)