I recently switched to Rstudio server on Ubuntu. I noticed that when I am running R markdown document (that contains flexdashboard and shiny elements) and which runs without a hinge well on windows gives the following warning when I press Run document on the IDE:
Warning in file.rename(from, to) :
cannot rename file '/tmp/Rtmpk1PyVy/file4ac06d25657b_files/figure-html' to '/tmp/Rtmpk1PyVy//tmp/Rtmpk1PyVy/file4ac06d25657b_files/figure-html', reason 'No such file or directory'
/usr/lib/rstudio-server/bin/pandoc/pandoc +RTS -K512m -RTS /tmp/Rtmpk1PyVy/INGholdings.utf8.md --to html4 --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output /tmp/Rtmpk1PyVy/file4ac06d25657b.html --email-obfuscation none --standalone --section-divs --template /home/ggbo/R/x86_64-pc-linux-gnu-library/3.5/flexdashboard/rmarkdown/templates/flex_dashboard/resources/default.html --id-prefix section- --variable 'theme:cosmo' --mathjax --variable 'mathjax-url:https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML' --include-in-header /tmp/Rtmpk1PyVy/file4ac079b31ab8html --include-before-body /tmp/Rtmpk1PyVy/file4ac04d215328.html --highlight-style pygments --include-before-body /tmp/Rtmpk1PyVy/file4ac06238bada.html --include-after-body /tmp/Rtmpk1PyVy/file4ac0726c1dfb.html
Warning in file.rename(from, to) :
cannot rename file '/tmp/Rtmpk1PyVy//tmp/Rtmpk1PyVy/file4ac06d25657b_files/figure-html' to '/tmp/Rtmpk1PyVy/file4ac06d25657b_files/figure-html', reason 'No such file or directory'
XXXX replaced with 4 digit portnumer and ip-port with valid ip number of rstudio server
and
the run document button on the IDE.
Both return the same error.
The figure is still plotted on the preview window that pops out rstudio. But if I use the browser to navigate to the ip-adress and port number only the frame border is printed and the sizing is completely lost.
If I execute all statements manually in the terminal they operate without error. (but offcourse no html file as a result)
Warning in file.rename(from, to) :
cannot rename file '/tmp/RtmpDxXWry/file24b22cfdc14d_files/figure-html' to '/tmp/RtmpDxXWry//tmp/RtmpDxXWry/file24b22cfdc14d_files/figure-html', reason 'No such file or directory'
Warning in file.rename(from, to) :
cannot rename file '/tmp/RtmpDxXWry//tmp/RtmpDxXWry/file24b22cfdc14d_files/figure-html' to '/tmp/RtmpDxXWry/file24b22cfdc14d_files/figure-html', reason 'No such file or directory'