Skip to content

Commit 596de1a

Browse files
authored
Merge pull request #688 from DyfanJones/main
address cran note around itemize
2 parents a96713f + e8644e4 commit 596de1a

File tree

5 files changed

+61
-67
lines changed

5 files changed

+61
-67
lines changed

make.paws/inst/templates/service_parameter_helper.R

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@
99
#'
1010
#' @param credentials \code{credentials()} or \code{list} is same format.
1111
#' \itemize{
12-
#' \item{\strong{creds}:} {\code{creds()} or \code{list} in same format.
12+
#' \item{\strong{creds}: \code{creds()} or \code{list} in same format.
1313
#' \itemize{
14-
#' \item{\strong{access_key_id}:} {AWS access key ID}
15-
#' \item{\strong{secret_access_key}:} {AWS secret access key}
16-
#' \item{\strong{session_token}:} {AWS temporary session token}
17-
#' \item{\strong{access_token}:} {The token issued by the \code{CreateToken} API call. For more information, see
14+
#' \item{\strong{access_key_id}: AWS access key ID}
15+
#' \item{\strong{secret_access_key}: AWS secret access key}
16+
#' \item{\strong{session_token}: AWS temporary session token}
17+
#' \item{\strong{access_token}: The token issued by the \code{CreateToken} API call. For more information, see
1818
#' \href{https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html}{CreateToken}
1919
#' in the `IAM Identity Center OIDC API Reference Guide`.}
20-
#' \item{\strong{expiration}:} {The date and time when the temporary credentials expire.
20+
#' \item{\strong{expiration}: The date and time when the temporary credentials expire.
2121
#' `expiration` must be a `POSIXct` date-time or able to be compared with them.}
2222
#' }}
23-
#' \item{\strong{profile}:} {The name of a profile to use. If not given, then the default profile is used.}
24-
#' \item{\strong{anonymous}:} {Set anonymous credentials.}
23+
#' \item{\strong{profile}: The name of a profile to use. If not given, then the default profile is used.}
24+
#' \item{\strong{anonymous}: Set anonymous credentials.}
2525
#' }
2626
#' @param endpoint The complete URL to use for the constructed client.
2727
#' @param region The AWS Region used in instantiating the client.
@@ -37,13 +37,13 @@
3737
#' Note that the default version is Signature Version 4.
3838
#' @param creds \code{creds()} or \code{list} in same format.
3939
#' \itemize{
40-
#' \item{\strong{access_key_id}:} {AWS access key ID}
41-
#' \item{\strong{secret_access_key}:} {AWS secret access key}
42-
#' \item{\strong{session_token}:} {AWS temporary session token}
43-
#' \item{\strong{access_token}:} {The token issued by the \code{CreateToken} API call. For more information, see
40+
#' \item{\strong{access_key_id}: AWS access key ID}
41+
#' \item{\strong{secret_access_key}: AWS secret access key}
42+
#' \item{\strong{session_token}: AWS temporary session token}
43+
#' \item{\strong{access_token}: The token issued by the \code{CreateToken} API call. For more information, see
4444
#' \href{https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html}{CreateToken}
4545
#' in the `IAM Identity Center OIDC API Reference Guide`.}
46-
#' \item{\strong{expiration}:} {The date and time when the temporary credentials expire.
46+
#' \item{\strong{expiration}: The date and time when the temporary credentials expire.
4747
#' `expiration` must be a `POSIXct` date-time or able to be compared with them.}
4848
#' }
4949
#' @param profile The name of a profile to use. If not given, then the default profile is used.

paws.common/R/logging.R

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,18 @@
1313
#' helper function \code{`paws_config_log`} or `R:base` \code{options} function.
1414
#' Users are able to change logging levels without calling \code{paws.common} by
1515
#' the use of \code{options} e.g. \code{options("paws.log_level" = 2L)}.
16-
#' \itemize{
17-
#' \item{paws.log_level} {integer: The minimum log level that should be tracked}
18-
#' \item{paws.log_file} {
19-
#' character: path for logs to populate, default output logs to console.
20-
#' }
21-
#' \item{paws.log_timestamp_fmt} {character: see [format.POSIXct()]}
22-
#' }
23-
#' @param level integer to determine the level logging threshold.
24-
#' \itemize{
25-
#' \item{4L :} {DEBUG}
26-
#' \item{3L :} {INFO}
27-
#' \item{2L :} {WARNING}
28-
#' \item{1L :} {ERROR}
29-
#' }
30-
#' @param file character path for logs to populate, default output logs to console.
31-
#' @param timestamp_fmt character for timestamp format, see [format.POSIXct()].
16+
#' * `paws.log_level` (integer): The minimum log level that should be tracked
17+
#' * `paws.log_file` (character): path for logs to populate, default output logs to console.
18+
#' * `paws.log_timestamp_fmt` (character): see [format.POSIXct()]
19+
#'
20+
#' @param level (integer) to determine the level logging threshold.
21+
#' * `4L`: DEBUG
22+
#' * `3L`: INFO
23+
#' * `2L`: WARNING
24+
#' * `1L`: ERROR
25+
#'
26+
#' @param file (character) path for logs to populate, default output logs to console.
27+
#' @param timestamp_fmt (character) for timestamp format, see [format.POSIXct()].
3228
#' @examples
3329
#' # log to a file
3430
#' temp_file <- tempfile()

paws.common/R/service_parameter_helper.R

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@
99
#'
1010
#' @param credentials \code{credentials()} or \code{list} is same format.
1111
#' \itemize{
12-
#' \item{\strong{creds}:} {\code{creds()} or \code{list} in same format.
12+
#' \item{\strong{creds}: \code{creds()} or \code{list} in same format.
1313
#' \itemize{
14-
#' \item{\strong{access_key_id}:} {AWS access key ID}
15-
#' \item{\strong{secret_access_key}:} {AWS secret access key}
16-
#' \item{\strong{session_token}:} {AWS temporary session token}
17-
#' \item{\strong{access_token}:} {The token issued by the \code{CreateToken} API call. For more information, see
14+
#' \item{\strong{access_key_id}: AWS access key ID}
15+
#' \item{\strong{secret_access_key}: AWS secret access key}
16+
#' \item{\strong{session_token}: AWS temporary session token}
17+
#' \item{\strong{access_token}: The token issued by the \code{CreateToken} API call. For more information, see
1818
#' \href{https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html}{CreateToken}
1919
#' in the `IAM Identity Center OIDC API Reference Guide`.}
20-
#' \item{\strong{expiration}:} {The date and time when the temporary credentials expire.
20+
#' \item{\strong{expiration}: The date and time when the temporary credentials expire.
2121
#' `expiration` must be a `POSIXct` date-time or able to be compared with them.}
2222
#' }}
23-
#' \item{\strong{profile}:} {The name of a profile to use. If not given, then the default profile is used.}
24-
#' \item{\strong{anonymous}:} {Set anonymous credentials.}
23+
#' \item{\strong{profile}: The name of a profile to use. If not given, then the default profile is used.}
24+
#' \item{\strong{anonymous}: Set anonymous credentials.}
2525
#' }
2626
#' @param endpoint The complete URL to use for the constructed client.
2727
#' @param region The AWS Region used in instantiating the client.
@@ -37,13 +37,13 @@
3737
#' Note that the default version is Signature Version 4.
3838
#' @param creds \code{creds()} or \code{list} in same format.
3939
#' \itemize{
40-
#' \item{\strong{access_key_id}:} {AWS access key ID}
41-
#' \item{\strong{secret_access_key}:} {AWS secret access key}
42-
#' \item{\strong{session_token}:} {AWS temporary session token}
43-
#' \item{\strong{access_token}:} {The token issued by the \code{CreateToken} API call. For more information, see
40+
#' \item{\strong{access_key_id}: AWS access key ID}
41+
#' \item{\strong{secret_access_key}: AWS secret access key}
42+
#' \item{\strong{session_token}: AWS temporary session token}
43+
#' \item{\strong{access_token}: The token issued by the \code{CreateToken} API call. For more information, see
4444
#' \href{https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html}{CreateToken}
4545
#' in the `IAM Identity Center OIDC API Reference Guide`.}
46-
#' \item{\strong{expiration}:} {The date and time when the temporary credentials expire.
46+
#' \item{\strong{expiration}: The date and time when the temporary credentials expire.
4747
#' `expiration` must be a `POSIXct` date-time or able to be compared with them.}
4848
#' }
4949
#' @param profile The name of a profile to use. If not given, then the default profile is used.

paws.common/man/paws_config_log.Rd

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

paws.common/man/set_service_parameter.Rd

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

0 commit comments

Comments
 (0)