Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Hi @AndriaM,
Importing custom libraries in R Markdown Report using dkuSourceLibR() is not working if your DSS instance has UIF enabled.
A possible option is to add the R files to a managed folder, then use dkuManagedFolderPath() to read the file:
managed_folder_path <- dkuManagedFolderPath("folder_ID")
test <- paste0(managed_folder_path, "/", "test.R")
In the case that the manage folder is not on the local file system, you could use dkuManagedFolderDownloadPath to read the file from the managed folder:
# Read file
rfile <- dkuManagedFolderDownloadPath(folder, "test.R", as = "raw")
tmp <- tempfile("tmp",fileext=".R")
tmp_file <- file(tmp, "wb")
writeBin(rfile, tmp_file)
close(tmp_file)