Skip to content

Commit 03dfe82

Browse files
committed
fix: fix and improvemets
1 parent ddeb58b commit 03dfe82

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

R/goodbye.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#' @param language Character string. The language for the farewell.
88
#' Supported languages: "english" (default), "spanish", "french", "portuguese", "german", "italian".
99
#' @param exclamation Logical. Whether to add an exclamation mark. Default is TRUE.
10-
#' @param capitalize Logical. Whether to capitalize the name. Default is FALSE.
10+
#' @param capitalize Logical. Whether to capitalize the first letter of the name. Default is FALSE.
1111
#'
1212
#' @return A character string containing the farewell message.
1313
#' @export

R/hello.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#' @param language Character string. The language for the greeting.
88
#' Supported languages: "english" (default), "spanish", "french", "portuguese", "german", "italian".
99
#' @param exclamation Logical. Whether to add an exclamation mark. Default is TRUE.
10-
#' @param capitalize Logical. Whether to capitalize the name. Default is FALSE.
10+
#' @param capitalize Logical. Whether to capitalize the first letter of the name. Default is FALSE.
1111
#'
1212
#' @return A character string containing the greeting.
1313
#' @export

man/goodbye.Rd

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@
22
\alias{goodbye}
33
\title{Say Goodbye}
44
\usage{
5-
goodbye(name = "world", language = "english", exclamation = TRUE)
5+
goodbye(name = "world", language = "english", exclamation = TRUE, capitalize = FALSE)
66
}
77
\arguments{
88
\item{name}{Character string. The name to bid farewell to. Default is "world".}
99

1010
\item{language}{Character string. The language for the farewell.
11-
Supported languages: "english" (default), "spanish", "french", "portuguese".}
11+
Supported languages: "english" (default), "spanish", "french", "portuguese", "german", "italian".}
1212

1313
\item{exclamation}{Logical. Whether to add an exclamation mark. Default is TRUE.}
14+
15+
\item{capitalize}{Logical. Whether to capitalize the first letter of the name. Default is FALSE.}
1416
}
1517
\value{
1618
A character string containing the farewell message.
@@ -24,7 +26,8 @@ goodbye()
2426
goodbye("R Users")
2527
goodbye("amigos", language = "spanish")
2628
goodbye("mes amis", language = "french", exclamation = FALSE)
29+
goodbye("world", capitalize = TRUE)
2730
}
2831
\seealso{
29-
\code{\link[myrpackage]{hello}} for a greeting function
32+
\code{\link{hello}} for a greeting function
3033
}

man/hello.Rd

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@
22
\alias{hello}
33
\title{Say Hello}
44
\usage{
5-
hello(name = "world", language = "english", exclamation = TRUE)
5+
hello(name = "world", language = "english", exclamation = TRUE, capitalize = FALSE)
66
}
77
\arguments{
88
\item{name}{Character string. The name to greet. Default is "world".}
99

1010
\item{language}{Character string. The language for the greeting.
11-
Supported languages: "english" (default), "spanish", "french", "portuguese".}
11+
Supported languages: "english" (default), "spanish", "french", "portuguese", "german", "italian".}
1212

1313
\item{exclamation}{Logical. Whether to add an exclamation mark. Default is TRUE.}
14+
15+
\item{capitalize}{Logical. Whether to capitalize the first letter of the name. Default is FALSE.}
1416
}
1517
\value{
1618
A character string containing the greeting.
@@ -24,7 +26,8 @@ hello()
2426
hello("R Users")
2527
hello("amigos", language = "spanish")
2628
hello("mes amis", language = "french", exclamation = FALSE)
29+
hello("world", capitalize = TRUE)
2730
}
2831
\seealso{
29-
\code{\link[myrpackage]{goodbye}} for a farewell function
32+
\code{\link{goodbye}} for a farewell function
3033
}

0 commit comments

Comments
 (0)