Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
vertesy committed Mar 6, 2024
1 parent 4ca88eb commit 1a07ba8
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions R/MarkdownReports.R
Original file line number Diff line number Diff line change
Expand Up @@ -2052,7 +2052,7 @@ wvenn <- function(yourlist,



# ______________________________________________________________________________________________
# ______________________________________________________________________________________________----
# Plots for cycling over data frame columns or rows ----
# _________________________________________________________________________________________________

Expand Down Expand Up @@ -2190,7 +2190,7 @@ whist_dfCol <- function(df,
}
}

# ______________________________________________________________________________________________
# ______________________________________________________________________________________________----
# A4 pdfs for multi-plots ----
# _________________________________________________________________________________________________

Expand Down Expand Up @@ -2659,6 +2659,29 @@ wLinRegression <- function(DF,



# ______________________________________________________________________________________________----
# Helpers ----
# _________________________________________________________________________________________________

.getScriptName <- function(OutDir) {
# Check if rstudioapi is available
if (!requireNamespace("rstudioapi", quietly = TRUE)) {
stop("rstudioapi package is not available. Please install it using install.packages('rstudioapi').")
}

# Attempt to get the script name
scriptName <- basename(rstudioapi::getSourceEditorContext()$path)

# If scriptName is empty, return basename of OutDir
if (scriptName == "") {
scriptName <- basename(OutDir)
}

return(scriptName)
}



# ______________________________________________________________________________________________----
# Graphics and Internal functions ----
# _________________________________________________________________________________________________
Expand Down Expand Up @@ -2703,8 +2726,6 @@ superscript_in_plots <- function(prefix = "n",





#' @title ww.dev.copy
#'
#' @description Parser for dev.copy to save as PDF or PNG
Expand Down

0 comments on commit 1a07ba8

Please sign in to comment.