avoid string printed to console getting truncated (in RStudio) This is an RStudio-specific feature, intended to help resolve problems where printing overly long strings could cause IDE sluggishness (I believe it was added with the latest release, v0 99 896) You can opt-out of this truncation by setting the Limit length of lines displayed in the console to: option to 0 (see the final option in the dialog):
rstudio - Change R default library path using . libPaths in Rprofile . . . Setting R_LIBS_USER will ensure that the library shows up first in libPaths () regardless of starting RStudio directly or by right-clicking an file and "Open With" to start RStudio The Rprofile solution can work if RStudio is always started by clicking the RStudio shortcut
Warning Detected output overflow; buffering the next 5000 lines of . . . Are there any options to prevent this message in Rstudio? (I printed many logger::log_info() message in my script, so 1 option is to change log level of logger, but I think It is preferable for the user to see the messages ) All of logs produced by logger::log_info() should shown in Rstudio render tab when rendering
R command for setting working directory to source file location in Rstudio The RStudio documentation says: "When launched through a file association, RStudio automatically sets the working directory to the directory of the opened file " The default setup is for RStudio to be register as a handler for R files, although there is also mention of ability to set a default "association" with RStudio for Rdata and R