Skip to content

Commit cd4cf3b

Browse files
Merge pull request #256 from Biogen-Inc/ac-cran-v022
Cran `v0.2.2` edits
2 parents 4c5812e + 59ffa73 commit cd4cf3b

22 files changed

Lines changed: 48 additions & 16 deletions

CRAN-SUBMISSION

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Version: 0.2.2
2+
Date: 2026-02-05 16:00:42 UTC
3+
SHA: f493b90fe7801902326b70a8b312dfd204f3ceb0

cran-comments.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@ checking package dependencies ... NOTE
1313
use conditionally.
1414
```
1515

16-
To address the note: there have been no additional dependencies introduced to the package since the last CRAN release (`v0.2.0`). For reference, here was my justification for this note previously:
16+
To address the note, here was my justification for this note in the previous release:
1717

1818
> `tidyCDISC` is (nearly) a "one stop shop" application for clinical reporting in the pharmaceutical space. As such, it leverages many modules to perform many tasks. Many tasks require many packages. While preparing for CRAN submission, we've surgically paired down the dependency list to 37 packages that (I feel) are necessary. These are primarily "mainstream" packages, meaning they are maintained by reputable & well known authors & dev teams in the R community.
1919
2020
### Test Environments
2121

22-
* Github action performing linux check with old, current, and devel release of R
23-
* Github action performing windows and macOS check with current R release
22+
* RHub Github action performing linux, macOS, and Windows R CMD Check
2423
* Local windows `devtools::check()`
25-
* RHub Check
2624

2725
## Downstream dependencies
2826
There are none.

dev/02_dev.R

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,11 +274,42 @@ urlchecker::url_update()
274274

275275
# check on other distributions
276276
# _rhub
277-
first_chk <- devtools::check_rhub()
278-
cran_chk <- rhub::check_for_cran(check_args = c("--as-cran"))
279277

280-
rhub::check_on_windows(check_args = "--force-multiarch")
281-
rhub::check_on_solaris()
278+
# Deprecated:
279+
# first_chk <- devtools::check_rhub()
280+
# cran_chk <- rhub::check_for_cran(check_args = c("--as-cran"))
281+
# rhub::check_on_windows(check_args = "--force-multiarch")
282+
# rhub::check_on_solaris()
283+
284+
# rhubv2!
285+
# rhub::rhub_setup()
286+
# rhub::rhub_doctor()
287+
rhub::rhub_check() # select linux, macos, and windows
288+
289+
290+
# reduce file size of images
291+
utils::install.packages("imager")
292+
library(imager)
293+
294+
# Load the image
295+
image_name <- "./vignettes/cran_figures/t_disp_red.PNG"
296+
image_name <- "./vignettes/cran_figures/quick_upload_then_tg_tidyCDISC_red.PNG"
297+
image_name <- "./vignettes/cran_figures/t_disp.PNG"
298+
image_name <- "./vignettes/cran_figures/line_plot_mean_over_time_breakdown.PNG"
299+
image_name <- "./vignettes/cran_figures/line_plot_mean_over_time_tidyCDISC.PNG"
300+
image_name <- "./vignettes/cran_figures/04-diabp_mean.jpeg"
301+
image_name <- "./vignettes/cran_figures/03-age_mean.PNG"
302+
image_name <- "./vignettes/cran_figures/drill_down_events.PNG"
303+
image_name <- "./vignettes/cran_figures/drill_down_visits.PNG"
304+
305+
my_img <- load.image(image_name)
306+
307+
# Save as JPEG (specify quality for JPEG compression)
308+
save.image(my_img, gsub("PNG", "jpeg", image_name), quality = 0.25) # Quality is a value between 0 and 1
309+
310+
311+
312+
282313
# _win devel
283314
devtools::check_win_devel()
284315

-76.7 KB
Binary file not shown.
63.5 KB
Loading
-77.2 KB
Binary file not shown.
65.2 KB
Loading
-66.3 KB
Binary file not shown.
59.7 KB
Loading
-63.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)