Skip to content

Commit

Permalink
properly space units
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhsparks committed Dec 18, 2024
1 parent 00845a0 commit 0e27c36
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions R/get_power.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
#' single point of x, y coordinates, not for use with \dQuote{global} or with
#' a regional request.
#' @param wind_elevation A user-supplied value for elevation at a single point
#' in metres. Wind Elevation values in Meters are required to be between 10m
#' and 300m. Only used with `lonlat` as a single point of x, y coordinates,
#' in metres. Wind Elevation values in Meters are required to be between 10 m
#' and 300 m. Only used with `lonlat` as a single point of x, y coordinates,
#' not for use with \dQuote{global} or with a regional request. If this
#' parameter is provided, the `wind_surface` parameter is required with the
#' request, see
Expand Down Expand Up @@ -106,7 +106,7 @@
#'
#' @section `wind_surface`: There are 17 surfaces that may be used for corrected
#' wind-speed values using the following equation:
#' \deqn{ WSC_hgt = WS_10m\times(\frac{hgt}{WS_50m})^\alpha}{WSC_hgt = WS_10m*(hgt/WS_50m)^\alpha }
#' \deqn{ WSC_hgt = WS_10 m\times(\frac{hgt}{WS_50m})^\alpha}{WSC_hgt = WS_10 m*(hgt/WS_50m)^\alpha }
#' Valid surface types are described here.
#'
#' \describe{
Expand Down Expand Up @@ -450,8 +450,8 @@ get_power <- function(community = c("ag", "re", "sb"),
#' single point of x, y coordinates, not for use with \dQuote{global} or with
#' a regional request.
#' @param wind_elevation A user-supplied value for elevation at a single point
#' in metres. Wind Elevation values in Meters are required to be between 10m
#' and 300m. Only used with `lonlat` as a single point of x, y coordinates,
#' in metres. Wind Elevation values in Meters are required to be between 10 m
#' and 300 m. Only used with `lonlat` as a single point of x, y coordinates,
#' not for use with \dQuote{global} or with a regional request. If this
#' parameter is provided, the `wind_surface` parameter is required with the
#' request, see
Expand Down Expand Up @@ -522,7 +522,7 @@ get_power <- function(community = c("ag", "re", "sb"),
(wind_elevation %notin% 10:300))) {
cli::cli_abort(
c(x = "{.arg wind_elevation} values in metres are required to be between
10m and 300m inclusive."),
10 and 300 metres inclusive."),
call = rlang::caller_env()
)
}
Expand Down
6 changes: 3 additions & 3 deletions man/get_power.Rd

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

0 comments on commit 0e27c36

Please sign in to comment.