Skip to content

Commit

Permalink
clean up and rename repo (#4)
Browse files Browse the repository at this point in the history
* clean up and rename

* [skip actions] Roxygen Man Pages Auto Update

* update wordlist

---------

Co-authored-by: 27856297+dependabot-preview[bot]@users.noreply.github.com <27856297+dependabot-preview[bot]@users.noreply.github.com>
  • Loading branch information
clarkliming and dependabot-preview[bot] authored Jan 25, 2024
1 parent 0839031 commit c6f11fc
Show file tree
Hide file tree
Showing 17 changed files with 34 additions and 170 deletions.
13 changes: 4 additions & 9 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
Type: Package
Package: covadj
Package: RobinCar2
Title: R Package Template
Version: 0.1.0.9000
Date: 2023-06-20
Authors@R:
person("openpharma", , , "[email protected]", role = c("aut", "cre"))
Description: R package template with GitHub Actions workflows included.
License: Apache License 2.0 | file LICENSE
URL: https://github.com/openpharma/covadj/
BugReports: https://github.com/openpharma/covadj/issues
URL: https://github.com/openpharma/RobinCar2/
BugReports: https://github.com/openpharma/RobinCar2/issues
Depends:
R (>= 3.6)
Imports:
plumber,
shiny,
stringr
Suggests:
future,
httr,
knitr,
shinytest,
testthat (>= 2.0)
VignetteBuilder:
knitr
Expand All @@ -28,4 +23,4 @@ Encoding: UTF-8
Language: en-US
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3
RoxygenNote: 7.3.1
3 changes: 0 additions & 3 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# Generated by roxygen2: do not edit by hand

export(hello)
export(plumber_api)
export(shiny_app)
importFrom(utils,packageName)
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# covadj 0.1.0.9000
# RobinCar2 0.1.0.9000

### New features

Expand Down
46 changes: 0 additions & 46 deletions R/hello.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,49 +13,3 @@ hello <- function(name = "your name") {
name <- stringr::str_to_title(name)
print(paste("Hello,", name))
}

#' Personal greeting as a Shiny app
#'
#' @description Greet a person and appropriately capitalize their name
#' as a Shiny app.
#'
#' @return Shiny app showcasing the personal greeting feature.
#' @export
#'
shiny_app <- function() {
ui <- shiny::fluidPage(
shiny::textInput("name", "What is your name?"),
shiny::actionButton("greet", "Greet"),
shiny::textOutput("greeting")
)

server <- function(input, output, session) {
output$greeting <- shiny::renderText({
shiny::req(input$greet)
hello(shiny::isolate(input$name))
})
}

shiny::shinyApp(ui, server)
}

#' Personal greeting as a Plumber API
#'
#' @importFrom utils packageName
#'
#' @description Greet a person and appropriately capitalize their name
#' as a Plumber API.
#'
#' @param ... Additional arguments to plumber::pr_run()
#'
#' @return Plumber API showcasing the personal greeting feature.
#' @export
#'
plumber_api <- function(...) {
plumber::pr_run(
plumber::plumb_api(
package = packageName(), name = "hello"
),
...
)
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# covadj
# RobinCar2

Short description of the package
21 changes: 21 additions & 0 deletions RobinCar2.Rproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Version: 1.0

RestoreWorkspace: No
SaveWorkspace: No
AlwaysSaveHistory: Default

EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: UTF-8

RnwWeave: Sweave
LaTeX: pdfLaTeX

AutoAppendNewline: Yes
StripTrailingWhitespace: Yes

BuildType: Package
PackageUseDevtools: Yes
PackageInstallArgs: --no-multiarch --with-keep.source
PackageRoxygenize: rd,collate,namespace
4 changes: 2 additions & 2 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
url: https://openpharma.github.io/covadj
url: https://openpharma.github.io/RobinCar2

template:
bootstrap: 5
Expand All @@ -17,4 +17,4 @@ template:
navbar:
right:
- icon: fa-github
href: https://github.com/openpharma/covadj
href: https://github.com/openpharma/RobinCar2
12 changes: 1 addition & 11 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
@@ -1,12 +1,2 @@
BiocCheck
CMD
Pkgdown
Pre
Roxygen
SuperLinter
github
gitleaks
RobinCar
initializer
pre
repo
Forkers
4 changes: 0 additions & 4 deletions inst/plumber/hello/plumber.R

This file was deleted.

18 changes: 0 additions & 18 deletions man/plumber_api.Rd

This file was deleted.

15 changes: 0 additions & 15 deletions man/shiny_app.Rd

This file was deleted.

2 changes: 1 addition & 1 deletion staged_dependencies.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
# Information about this file: https://github.com/openpharma/staged.dependencies
current_repo:
repo: openpharma/covadj
repo: openpharma/RobinCar2
host: https://github.com
upstream_repos:
downstream_repos:
2 changes: 1 addition & 1 deletion tests/testthat.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pkg_name <- "covadj"
pkg_name <- "RobinCar2"
library(pkg_name, character.only = TRUE)
testthat::test_check(pkg_name)
1 change: 0 additions & 1 deletion tests/testthat/shiny-app/app.R

This file was deleted.

30 changes: 0 additions & 30 deletions tests/testthat/test-api.R

This file was deleted.

25 changes: 0 additions & 25 deletions tests/testthat/test-shiny.R

This file was deleted.

4 changes: 2 additions & 2 deletions vignettes/hello.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ date: "`r Sys.Date()`"
Hello World!

```{r}
library(covadj)
hello("covadj!")
library(RobinCar2)
hello("RobinCar2!")
```

0 comments on commit c6f11fc

Please sign in to comment.