This is a simple statement. It belongs to a program sourced by shiny. The message gets displayed in the UI.
After a series of statements like the mapFns below, the output of the cat statement that follows gets printed many times. Why is this happening?
mapFns<- mapFns[grep("_SiteCounts.tsv", mapFns, invert=T)]
if (length(mapFns)>0) {
cat("There may be merge_MAP files in OUTpath, among these files:\n")
print(data.frame(mapFns))
}
This block of code is not called by a reactive value. Is part of a program that the App uses by inserting "source("folder"). The block of code is neither used by the UI, nor by the server function. When the sourced program runs the cat and print statements, their respective messages get printed in the UI main panel. I wanted to take advantage of the fact that the statements get displayed so I do not have to use renderText, but I do not understand why they would not be displayed only once.