Each time after I open RStudio, the first line of code I enter will result in this warning:
Warning message: Error in normalizePath(path.expand(path), winslash, mustWork) : path[1]="NA": The system cannot find the file specified
This only happens once. As long as I don't close the document, for example, this warning will not show up anymore. However, if I close RStudio and open it again, the first time I run any code will reproduce the same warning.
This only happens for RStudio. If I use R instead, everything works normally.
I tried to supress this warning with supressWarnings(), suppressWarnings(suppressMessages()) or even invisible(capture.output(suppressWarnings(suppressMessages()))) to no avail.
I normally wouldn't care about warning messages, but since I'm working with RMarkdown, the warnings show up in the final document, so it's really annoying.
Thanks a lot for any help.