Merge branch 'fix-library-load'

* fix-library-load:
  utils: Move library() calls to beginning of file
This commit is contained in:
Jens Sauer 2020-11-19 19:46:39 +01:00
commit 3c517431f6

10
utils.R
View File

@ -3,6 +3,10 @@
# License: GPL version 3
# Jens Mathis Sauer (c) 2020
library(survival)
library(survminer)
library(tidyverse)
#
# Write plot to filename
#
@ -95,12 +99,6 @@ sma_break.time.by = 5 * 365.25
sma_init <- function() {
if (exists("sma_initialized") == FALSE) {
print("Initialize secMalASCT workspace")
print("Loading libraries")
library(survival)
library(survminer)
library(tidyverse)
print("Loading data")
#
# Use superassignment operator '<<-' to make