Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# admiralneuro (development version)


<details>
<summary>Developer Notes</summary>

- Aligned the templates' save directory with `{pharmaverseadam}` requirements. (#91)

</details>

## New features

## Documentation
Expand Down
9 changes: 7 additions & 2 deletions inst/templates/ad_adapet.R
Original file line number Diff line number Diff line change
Expand Up @@ -308,5 +308,10 @@ admiralneuro_adapet <- adapet
# Save output ----

# Change to whichever directory you want to save the dataset in
tmp_file <- file.path(tempdir(), "admiralneuro_adapet.rda")
save(admiralneuro_adapet, file = tmp_file, compress = "bzip2")
dir <- tools::R_user_dir("admiralneuro_templates_data", which = "cache")

if (!file.exists(dir)) {
# Create the folder
dir.create(dir, recursive = TRUE, showWarnings = FALSE)
}
save(admiralneuro_adapet, file = file.path(dir, "adapet.rda"), compress = "bzip2")
9 changes: 7 additions & 2 deletions inst/templates/ad_adtpet.R
Original file line number Diff line number Diff line change
Expand Up @@ -216,5 +216,10 @@ admiralneuro_adtpet <- adtpet
# Save output ----

# Change to whichever directory you want to save the dataset in
tmp_file <- file.path(tempdir(), "admiralneuro_adtpet.rda")
save(admiralneuro_adtpet, file = tmp_file, compress = "bzip2")
dir <- tools::R_user_dir("admiralneuro_templates_data", which = "cache")

if (!file.exists(dir)) {
# Create the folder
dir.create(dir, recursive = TRUE, showWarnings = FALSE)
}
save(admiralneuro_adtpet, file = file.path(dir, "adtpet.rda"), compress = "bzip2")