When you attach functions or external packages, the messages you are seeing are probably generated as output from the source() call. You can make use of the capabilities, suppressPackageStartupMessages() and suppressMessages(), by modifying the source() call so that startup and routine messages will be silenced.
Try using this wrapper for your source() call:
suppressPackageStartupMessages(suppressMessages(source("C:/Rscripts/source.R"))) |
Also, configure your chunk options to not display messages and warnings:
suppressPackageStartupMessages(suppressMessages(source("C:/Rscripts/source.R"))) |