In RStudio 2023.06.1-524 on a PC running Windows 10 Pro 64-bit, I am trying to render an R Notebook. When I hit the Knit button, R executes the commands in the notebook and then issues the following error message:
Error in normalizePath(path.expand(path), winslash, mustWork) :
path[1]="y:\RtmpMpLtFJ\file411469812b64_files/header-attrs-2.23": Das System kann den angegebenen Pfad nicht finden
Calls: ... html_dependencies_as_string -> lapply -> FUN -> normalizePath
In addition: Warning messages:
1: In dir.create(outputDir, recursive = TRUE) :
cannot create dir 'y:', reason 'Permission denied'
2: In dir.create(target_dir) :
cannot create dir 'y:\RtmpMpLtFJ\file411469812b64_files\header-attrs-2.23', reason 'No such file or directory'
Execution halted
("Das System kann den angegebenen Pfad nicht finden" = "The system cannot find the specified path" - the locale of my system is set to German.)
y:\ is the temporary directory of my system (both TEMP and TMP), which is on a local partition. The error occurs with any type of output document (Preview / HTML / PDF / Word).
How can I resolve this? Thank you so much!