Skip to content

Commit 4369bec

Browse files
committed
fix: fix github actions
1 parent 21f7d00 commit 4369bec

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Encoding: UTF-8
1010
LazyData: true
1111
Roxygen: list(markdown = TRUE)
1212
RoxygenNote: 7.3.1
13-
Suggests:
13+
Suggests:
1414
covr,
1515
knitr,
1616
lintr,
@@ -24,5 +24,5 @@ Config/testthat/edition: 3
2424
VignetteBuilder: knitr
2525
URL: https://github.com/DiogoRibeiro7/myrpackage, https://diogoribeiro7.github.io/myrpackage/
2626
BugReports: https://github.com/DiogoRibeiro7/myrpackage/issues
27-
Depends:
27+
Depends:
2828
R (>= 4.0)

R/goodbye.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ goodbye <- function(name = "world", language = "english", exclamation = TRUE) {
2323
if (!is.character(name) || length(name) != 1) {
2424
stop("'name' must be a single character string")
2525
}
26-
26+
2727
if (!is.character(language) || length(language) != 1) {
2828
stop("'language' must be a single character string")
2929
}
30-
30+
3131
if (!is.logical(exclamation) || length(exclamation) != 1) {
3232
stop("'exclamation' must be a single logical value")
3333
}
34-
34+
3535
# Select farewell based on language
3636
farewell <- switch(
3737
tolower(language),
@@ -42,20 +42,20 @@ goodbye <- function(name = "world", language = "english", exclamation = TRUE) {
4242
# Default to English if language not supported
4343
"Goodbye"
4444
)
45-
45+
4646
# Construct the farewell
4747
result <- paste0(farewell, ", ", name)
48-
48+
4949
# Add exclamation mark if requested
5050
if (exclamation) {
5151
result <- paste0(result, "!")
5252
} else {
5353
result <- paste0(result, ".")
5454
}
55-
55+
5656
# Print the farewell and return it invisibly
5757
cat(result, "\n")
58-
58+
5959
# Return the farewell
6060
invisible(result)
6161
}

R/hello.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ hello <- function(name = "world", language = "english", exclamation = TRUE) {
2323
if (!is.character(name) || length(name) != 1) {
2424
stop("'name' must be a single character string")
2525
}
26-
26+
2727
if (!is.character(language) || length(language) != 1) {
2828
stop("'language' must be a single character string")
2929
}
30-
30+
3131
if (!is.logical(exclamation) || length(exclamation) != 1) {
3232
stop("'exclamation' must be a single logical value")
3333
}
34-
34+
3535
# Select greeting based on language
3636
greeting <- switch(
3737
tolower(language),
@@ -42,20 +42,20 @@ hello <- function(name = "world", language = "english", exclamation = TRUE) {
4242
# Default to English if language not supported
4343
"Hello"
4444
)
45-
45+
4646
# Construct the greeting
4747
result <- paste0(greeting, ", ", name)
48-
48+
4949
# Add exclamation mark if requested
5050
if (exclamation) {
5151
result <- paste0(result, "!")
5252
} else {
5353
result <- paste0(result, ".")
5454
}
55-
55+
5656
# Print the greeting and return it invisibly
5757
cat(result, "\n")
58-
58+
5959
# Return the greeting
6060
invisible(result)
6161
}

0 commit comments

Comments
 (0)