Skip to content

Commit 4804064

Browse files
committed
rename package
1 parent 27327b9 commit 4804064

File tree

10 files changed

+33
-33
lines changed

10 files changed

+33
-33
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Package: sepsr
1+
Package: ricu
22
Title: Tools for working with publicly available intensive care unit (ICU) datasets
33
Description: What the package does (one paragraph).
44
Version: 0.0.0.9000

LICENSE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
GNU General Public License
22
==========================
33

4-
_Version 3, 29 June 2007_
4+
_Version 3, 29 June 2007_
55
_Copyright © 2007 Free Software Foundation, Inc. &lt;<http://fsf.org/>&gt;_
66

77
Everyone is permitted to copy and distribute verbatim copies of this license
@@ -573,7 +573,7 @@ Also add information on how to contact you by electronic and paper mail.
573573
If the program does terminal interaction, make it output a short notice like this
574574
when it starts in an interactive mode:
575575

576-
sepsr Copyright (C) 2019 Drago Plecko; Nicolas Bennett
576+
ricu Copyright (C) 2019 Drago Plecko; Nicolas Bennett
577577
This program comes with ABSOLUTELY NO WARRANTY; for details type 'show w'.
578578
This is free software, and you are welcome to redistribute it
579579
under certain conditions; type 'show c' for details.

R/data-import.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
#' Data import utilities
33
#'
4-
#' In order to speed up data access operations, `sepsr` does not directly use
4+
#' In order to speed up data access operations, `ricu` does not directly use
55
#' the PhysioNet provided CSV files, but converts all data to [fst::fst()]
66
#' format, which allows for random row and column access. Large tables are
77
#' split into chunks in order to keep memory requirements under control.

R/utils.R

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
#'
99
#' | **Platform** | **Location** |
1010
#' | ------------ | ------------------------------------- |
11-
#' | Linux | `~/.local/share/sepsr` |
12-
#' | macOS | `~/Library/Application Support/sepsr` |
13-
#' | Windows | `%LOCALAPPDATA%/sepsr` |
11+
#' | Linux | `~/.local/share/ricu` |
12+
#' | macOS | `~/Library/Application Support/ricu` |
13+
#' | Windows | `%LOCALAPPDATA%/ricu` |
1414
#'
1515
#' If the default storage directory does not exists, it will only be created
1616
#' upon user consent (requiring an interactive session).
1717
#'
18-
#' The environment variable `SEPSR_DATA_PATH` can be used to overwrite the
18+
#' The environment variable `RICU_DATA_PATH` can be used to overwrite the
1919
#' default location. If desired, this variable can be set in an R startup file
2020
#' to make it apply to all R sessions. For example, it could be set within:
2121
#'
@@ -31,7 +31,7 @@
3131
#' @rdname file_utils
3232
#'
3333
#' @examples
34-
#' Sys.setenv(SEPSR_DATA_PATH = tempdir())
34+
#' Sys.setenv(RICU_DATA_PATH = tempdir())
3535
#' identical(data_dir(), tempdir())
3636
#'
3737
#' dir.exists(file.path(tempdir(), "some_subdir"))
@@ -61,7 +61,7 @@ default_data_path <- function() {
6161
Sys.getenv("XDG_DATA_HOME", "~/.local/share")
6262
)
6363

64-
root <- file.path(root, "sepsr")
64+
root <- file.path(root, "ricu")
6565

6666
if (!dir.exists(root)) {
6767
message("Attempting to set up data directory at\n ", root,
@@ -103,7 +103,7 @@ ensure_dir <- function(paths) {
103103

104104
data_dir_path <- function() {
105105

106-
env_var <- Sys.getenv("SEPSR_DATA_PATH", unset = NA_character_)
106+
env_var <- Sys.getenv("RICU_DATA_PATH", unset = NA_character_)
107107

108108
if (is.na(env_var)) default_data_path()
109109
else ensure_dir(env_var)
@@ -115,14 +115,14 @@ default_config_path <- function() {
115115

116116
config_dir_path <- function() {
117117

118-
env_var <- Sys.getenv("SEPSR_CONFIG_PATH", unset = NA_character_)
118+
env_var <- Sys.getenv("RICU_CONFIG_PATH", unset = NA_character_)
119119

120120
if (is.na(env_var)) default_config_path()
121121
else ensure_dir(env_var)
122122
}
123123

124124
#' For configuration files, the default location is `extdata/config` and the
125-
#' environment variable `SEPSR_CONFIG_PATH` can be used to overwrite the
125+
#' environment variable `RICU_CONFIG_PATH` can be used to overwrite the
126126
#' default location. Files are first searched for in the user-specified
127127
#' directory and if not found there, the default dir ist taken into account.
128128
#' Additionally, `get_config()` has a `dir` argument which takes highest
@@ -139,7 +139,7 @@ config_dir_path <- function() {
139139
#' identical(
140140
#' cfg,
141141
#' get_config("eicu-demo",
142-
#' system.file("extdata", "config", package = "sepsr"))
142+
#' system.file("extdata", "config", package = "ricu"))
143143
#' )
144144
#'
145145
#' @export

inst/testdata/data-download.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ trace(
66
exit = function() { output <<- returnValue() }
77
)
88

9-
sepsr:::download_pysionet_file(
9+
ricu:::download_pysionet_file(
1010
"https://physionet.org/files/mimiciii-demo/1.4/SHA256SUMS.txt"
1111
)
1212

@@ -23,13 +23,13 @@ close(con)
2323

2424
saveRDS(output, "SHA256SUMS.txt.rds")
2525

26-
sepsr:::download_pysionet_file(
26+
ricu:::download_pysionet_file(
2727
"https://physionet.org/files/mimiciii-demo/1.4/patients.csv"
2828
)
2929

3030
saveRDS(output, "patients.csv.rds")
3131

32-
sepsr:::download_pysionet_file(
32+
ricu:::download_pysionet_file(
3333
"https://physionet.org/files/mimiciii-demo/1.4/services.csv"
3434
)
3535

man/data_import.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/file_utils.Rd

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

tests/testthat.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
library(testthat)
2-
library(sepsr)
2+
library(ricu)
33

44
if (requireNamespace("xml2")) {
55
test_check(
6-
"sepsr",
6+
"ricu",
77
reporter = MultiReporter$new(
88
reporters = list(JunitReporter$new(file = "test-results.xml"),
99
CheckReporter$new()
1010
)
1111
)
1212
)
1313
} else {
14-
test_check("sepsr")
14+
test_check("ricu")
1515
}

tests/testthat/test-data-download.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ test_that("credential management", {
2323

2424
creds <- with_mock(
2525
`keyring::key_set_with_value` = function(...) invisible(NULL),
26-
`sepsr:::read_line` = function(...) "bar",
26+
`ricu:::read_line` = function(...) "bar",
2727
get_set_physionet_creds("foo")
2828
)
2929

3030
expect_identical(creds, list(username = "foo", password = "bar"))
3131

3232
creds <- with_mock(
33-
`sepsr:::is_pkg_available` = function(...) FALSE,
34-
`sepsr:::read_line` = function(x, ...) {
33+
`ricu:::is_pkg_available` = function(...) FALSE,
34+
`ricu:::read_line` = function(x, ...) {
3535
if (grepl("user", x)) "foo" else if (grepl("pass", x)) "bar" else "baz"
3636
},
3737
get_set_physionet_creds()
@@ -41,7 +41,7 @@ test_that("credential management", {
4141

4242
expect_error(
4343
with_mock(
44-
`sepsr:::is_pkg_available` = function(...) FALSE,
44+
`ricu:::is_pkg_available` = function(...) FALSE,
4545
get_set_physionet_creds()
4646
)
4747
)
@@ -50,7 +50,7 @@ test_that("credential management", {
5050
curl_mock_fm <- function(url, handle) {
5151

5252
file <- system.file("testdata", paste0(basename(url), ".rds"),
53-
package = "sepsr")
53+
package = "ricu")
5454

5555
if (identical(file, "")) stop("file ", basename(url), "not found")
5656

tests/testthat/test-eicu-sofa.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
pa <- sepsr:::eicu_sofa_pa(data_env = "eicu_demo")
2+
pa <- eicu_sofa_pa(data_env = "eicu_demo")
33

44
test_that("fetch sofa pa", {
55
expect_is(pa, "data.table")

0 commit comments

Comments
 (0)