Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
3 changes: 3 additions & 0 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Version: 0.2.2
Date: 2026-02-05 16:00:42 UTC
SHA: f493b90fe7801902326b70a8b312dfd204f3ceb0
6 changes: 2 additions & 4 deletions cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,14 @@ checking package dependencies ... NOTE
use conditionally.
```

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:
To address the note, here was my justification for this note in the previous release:

> `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.

### Test Environments

* Github action performing linux check with old, current, and devel release of R
* Github action performing windows and macOS check with current R release
* RHub Github action performing linux, macOS, and Windows R CMD Check
* Local windows `devtools::check()`
* RHub Check

## Downstream dependencies
There are none.
Expand Down
39 changes: 35 additions & 4 deletions dev/02_dev.R
Original file line number Diff line number Diff line change
Expand Up @@ -274,11 +274,42 @@ urlchecker::url_update()

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

rhub::check_on_windows(check_args = "--force-multiarch")
rhub::check_on_solaris()
# Deprecated:
# first_chk <- devtools::check_rhub()
# cran_chk <- rhub::check_for_cran(check_args = c("--as-cran"))
# rhub::check_on_windows(check_args = "--force-multiarch")
# rhub::check_on_solaris()

# rhubv2!
# rhub::rhub_setup()
# rhub::rhub_doctor()
rhub::rhub_check() # select linux, macos, and windows


# reduce file size of images
utils::install.packages("imager")
library(imager)

# Load the image
image_name <- "./vignettes/cran_figures/t_disp_red.PNG"
image_name <- "./vignettes/cran_figures/quick_upload_then_tg_tidyCDISC_red.PNG"
image_name <- "./vignettes/cran_figures/t_disp.PNG"
image_name <- "./vignettes/cran_figures/line_plot_mean_over_time_breakdown.PNG"
image_name <- "./vignettes/cran_figures/line_plot_mean_over_time_tidyCDISC.PNG"
image_name <- "./vignettes/cran_figures/04-diabp_mean.jpeg"
image_name <- "./vignettes/cran_figures/03-age_mean.PNG"
image_name <- "./vignettes/cran_figures/drill_down_events.PNG"
image_name <- "./vignettes/cran_figures/drill_down_visits.PNG"

my_img <- load.image(image_name)

# Save as JPEG (specify quality for JPEG compression)
save.image(my_img, gsub("PNG", "jpeg", image_name), quality = 0.25) # Quality is a value between 0 and 1




# _win devel
devtools::check_win_devel()

Expand Down
Binary file removed vignettes/cran_figures/03-age_mean.PNG
Binary file not shown.
Binary file added vignettes/cran_figures/03-age_mean.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed vignettes/cran_figures/04-diabp_mean.PNG
Binary file not shown.
Binary file added vignettes/cran_figures/04-diabp_mean.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed vignettes/cran_figures/drill_down_events.PNG
Binary file not shown.
Binary file added vignettes/cran_figures/drill_down_events.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed vignettes/cran_figures/drill_down_visits.PNG
Binary file not shown.
Binary file added vignettes/cran_figures/drill_down_visits.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed vignettes/cran_figures/t_disp.PNG
Binary file not shown.
Binary file removed vignettes/cran_figures/t_disp_red.PNG
Binary file not shown.
Binary file added vignettes/cran_figures/t_disp_red.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 8 additions & 8 deletions vignettes/getting_started.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Our first stop will be the table generator!
<br>

```{r, echo=FALSE, out.width="95%", fig.align = 'center'}
knitr::include_graphics("cran_figures/quick_upload_then_tg_tidyCDISC_red.PNG")
knitr::include_graphics("cran_figures/quick_upload_then_tg_tidyCDISC_red.jpeg")
```

<br>
Expand Down Expand Up @@ -111,7 +111,7 @@ In order to build a table, we need only drag a variable block to the "Variable"
<br>

```{r, echo=FALSE, out.width="95%", fig.align = 'center'}
knitr::include_graphics("cran_figures/03-age_mean.PNG")
knitr::include_graphics("cran_figures/03-age_mean.jpeg")
```

<br>
Expand All @@ -121,7 +121,7 @@ Similarly, we can drag in `DIABP` from the `ADVS` and use the `MEAN` block to ca
<br>

```{r, echo=FALSE, out.width="95%", fig.align = 'center'}
knitr::include_graphics("cran_figures/04-diabp_mean.PNG")
knitr::include_graphics("cran_figures/04-diabp_mean.jpeg")
```

<br>
Expand All @@ -143,7 +143,7 @@ When one of these tables is selected, like disposition (Accounting of Subjects)^
<br>

```{r, echo=FALSE, out.width="95%", fig.align = 'center'}
knitr::include_graphics("cran_figures/t_disp_red.PNG")
knitr::include_graphics("cran_figures/t_disp_red.jpeg")
```

<br>
Expand All @@ -165,7 +165,7 @@ Let's assume a scenario where we want to check on our patients' vital signs thro
<br>

```{r, echo=FALSE, out.width="95%", fig.align = 'center'}
knitr::include_graphics("cran_figures/line_plot_mean_over_time_tidyCDISC.PNG")
knitr::include_graphics("cran_figures/line_plot_mean_over_time_tidyCDISC.jpeg")
```

<br>
Expand All @@ -175,7 +175,7 @@ Using the **"Separate plots by"** drop down list, we select `TRT01A` to investig
<br>

```{r, echo=FALSE, out.width="95%", fig.align = 'center'}
knitr::include_graphics("cran_figures/line_plot_mean_over_time_breakdown.PNG")
knitr::include_graphics("cran_figures/line_plot_mean_over_time_breakdown.jpeg")
```

<br>
Expand Down Expand Up @@ -211,7 +211,7 @@ After selecting a `USUBJID`, we scroll down the page to examine that patient's d
<br>

```{r, echo=FALSE, out.width="95%", fig.align = 'center'}
knitr::include_graphics("cran_figures/drill_down_events.PNG")
knitr::include_graphics("cran_figures/drill_down_events.jpeg")
```

<br>
Expand All @@ -223,7 +223,7 @@ Switching to the "Visits" tab, we can see that this patient did indeed have cons
<br>

```{r, echo=FALSE, out.width="95%", fig.align = 'center'}
knitr::include_graphics("cran_figures/drill_down_visits.PNG")
knitr::include_graphics("cran_figures/drill_down_visits.jpeg")
```

<br>
Expand Down