RStudio Not accessing Windows 10 files

I have been using RStudio for about 1/2 a year (mostly for writing college reports with templates), and have loved it - until recently when I could not access anything on the Windows file system from within RStudio. That is I cannot open, or save any file that I create ( I can still create new r scripts ). Nor can I access any of the templates.

I get the following error "The system cannot find the path specified"
Additionally, if I try to close RStudio immediately after this error, RStudio has a fatal error where it needs to restart R session.
I am running Windows 10 Pro, version 1909, build 18363.720,

and the problem initially surfaced using RStudio 1.2.5033, (which I had upgraded from 1.2.1335)
with R 3.6.3.

I've done multiple searches for solutions, and while some of the symptoms were the same, none of the solutions have worked (from RStudio Community, Microsoft, StackOverflow... others)

I've tried:

  • uninstalling RStudio and reinstalling
  • uninstall/reinstall of RStudio and R. (here I also tracked down any R related in AppData and deleted it)
  • uninstall / install downgrades of RStudio and R (back to 1.2.1335 and 3.6.2 respectively)
  • Checking for any permissions denial issues that could be coming from windows Defender

I've discovered that I can edit save files from R run in a terminal, so it seems to just be with RStudio that this problem is persisting.

This is frustrating in that the application was working fine within the last 2 weeks, and also I have several multi-page papers that are already written within RMarkdown templates.

anyway, any help would be greatly appreciated.

Could you create and share a diagnostics report with us?

Here is the text of the diagnostics report:

[1] "1.2.1335"

$R
[1] "C:\PROGRA~1\R\R-3.6.2\bin\x64\R.exe"

$pdflatex
[1] "C:\Users\james\AppData\Local\Programs\MIKTEX~1.9\miktex\bin\x64\pdflatex.exe"

$bibtex
[1] "C:\Users\james\AppData\Local\Programs\MIKTEX~1.9\miktex\bin\x64\bibtex.exe"

$gcc
[1] "C:\GNAT\2019\bin\gcc.exe"

$git
[1] "C:\PROGRA~1\Git\bin\git.exe"

$svn
[1] "C:\PROGRA~1\TortoiseSVN\bin\svn.exe"

R version 3.6.2 (2019-12-12)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats graphics grDevices utils datasets
[6] methods base

loaded via a namespace (and not attached):
[1] compiler_3.6.2 tools_3.6.2

SysInfo:
sysname release version
"Windows" "10 x64" "build 18363"
nodename machine login
"DESKTOP-NJ5VRG3" "x86-64" "james"
user effective_user
"james" "james"

R Version:
_
platform x86_64-w64-mingw32
arch x86_64
os mingw32
system x86_64, mingw32
status
major 3
minor 6.2
year 2019
month 12
day 12
svn rev 77560
language R
version.string R version 3.6.2 (2019-12-12)
nickname Dark and Stormy Night
$ADSK_CLM_WPAD_PROXY_CHECK
[1] "FALSE"

$ALDEC_LICENSE_FILE
[1] "C:\Aldec\Active-HDL-10.5a\Dat\license.dat"

$ALLUSERSPROFILE
[1] "C:\ProgramData"

$ALTERAOCLSDKROOT
[1] "C:\altera\15.0\hld"

$APPDATA
[1] "C:\Users\james\AppData\Roaming"

$ChocolateyInstall
[1] "C:\ProgramData\chocolatey"

$ChocolateyLastPathUpdate
[1] "132289298156046662"

$CLICOLOR_FORCE
[1] "1"

$CommonProgramFiles
[1] "C:\Program Files\Common Files"

$CommonProgramFiles(x86)
[1] "C:\Program Files (x86)\Common Files"

$CommonProgramW6432
[1] "C:\Program Files\Common Files"

$COMPOSE_CONVERT_WINDOWS_PATHS
[1] "true"

$COMPUTERNAME
[1] "DESKTOP-NJ5VRG3"

$ComSpec
[1] "C:\WINDOWS\system32\cmd.exe"

$DISPLAY
[1] ":0"

$DOCKER_CERT_PATH
[1] "C:\Users\james\.docker\machine\machines\default"

$DOCKER_HOST
[1] "tcp://192.168.99.100:2376"

$DOCKER_MACHINE_NAME
[1] "default"

$DOCKER_TLS_VERIFY
[1] "1"

$DOCKER_TOOLBOX_INSTALL_PATH
[1] "C:\Program Files\Docker Toolbox"

$DriverData
[1] "C:\Windows\System32\Drivers\DriverData"

$GFORTRAN_STDERR_UNIT
[1] "-1"

$GFORTRAN_STDOUT_UNIT
[1] "-1"

$HOME
[1] "C:\Users\james\"

$HOMEDRIVE
[1] "C:"

$HOMEPATH
[1] "\Users\james"

$JUNORC_PATH
[1] "C:\Users\james\AppData\Local\JuliaPro-1.3.1-2\.atom"

$LM_LICENSE_FILE
[1] "C:\Aldec\Active-HDL-10.5a\Dat\license.dat"

$LOCALAPPDATA
[1] "C:\Users\james\AppData\Local"

$LOGONSERVER
[1] "\\DESKTOP-NJ5VRG3"

$MSYS2_ENV_CONV_EXCL
[1] "R_ARCH"

$NO_PROXY
[1] "192.168.99.100"

$NUMBER_OF_PROCESSORS
[1] "8"

$OMP_NUM_THREADS
[1] "8"

$OneDrive
[1] "C:\Users\james\OneDrive"

$OneDriveConsumer
[1] "C:\Users\james\OneDrive"

$OS
[1] "Windows_NT"

$PATH
[1] "C:\Program Files\R\R-3.6.2\bin\x64;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS;C:\Program Files\Ruby26-x64\bin;C:\Qt\5.12.4\msvc2017_64\bin;%JAVA_HOME%\bin;C:\Program Files\Java\jdk1.8.0_241\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\TortoiseSVN\bin;C:\Program Files\MATLAB\R2020a\runtime\win64;C:\Program Files\MATLAB\R2020a\bin;C:\Program Files\MATLAB\R2019a\runtime\win64;C:\Program Files\MATLAB\R2019a\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\AOMEI Backupper;C:\Program Files (x86)\Microchip\xc8\v2.10\bin;C:\Aldec\Active-HDL-10.5a\bin;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\GNAT\2019\bin\;C:\FPC\3.0.4\bin\i386-Win32;C:\Users\james\Apache\apache-maven-3.6.3\bin\;C:\Program Files\dotnet\;C:\ProgramData\chocolatey\bin;C:\Program Files\R\R-3.6.2\bin;C:\Program Files\PuTTY\;C:\Program Files\Ruby26-x64\bin;%JAVA_HOME%\bin;C:\Users\james\AppData\Local\Microsoft\WindowsApps;C:\Qt\5.12.4\msvc2017_64\bin;C:\Program Files\Java\jdk1.8.0_241\bin;C:\Users\james\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\james\AppData\Local\Programs\MiKTeX 2.9\miktex\bin\x64\;C:\Users\james\Anaconda3;C:\Users\james\Anaconda3\Scripts;C:\Program Files (x86)\Vim\vim81;C:\Program Files\Git\bin;C:\Program Files\Git\mingw64\bin;C:\cygwin64\bin;C:\Program Files\7-Zip;C:\Users\james\AppData\Local\Pandoc\;C:\Program Files\R\R-3.6.2\bin;C:\Program Files\Docker Toolbox;C:\intelFPGA_lite\17.1\modelsim_ase\win32aloem;C:\GNAT\2019\bin\;C:\FPC\3.0.4\bin\;C:\Users\james\Apache\apache-maven-3.6.3\bin\;C:\Users\james\Documents\MyScripts\;C:\Users\james\Gradle\gradle-6.2.1\bin;"

$PATHEXT
[1] ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.RB;.RBW;.RB;.RBW"

$PROCESSOR_ARCHITECTURE
[1] "AMD64"

$PROCESSOR_IDENTIFIER
[1] "Intel64 Family 6 Model 158 Stepping 10, GenuineIntel"

$PROCESSOR_LEVEL
[1] "6"

$PROCESSOR_REVISION
[1] "9e0a"

$ProgramData
[1] "C:\ProgramData"

$ProgramFiles
[1] "C:\Program Files"

$ProgramFiles(x86)
[1] "C:\Program Files (x86)"

$ProgramW6432
[1] "C:\Program Files"

$PSModulePath
[1] "C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules"

$PT7HOME
[1] "C:\Program Files\Cisco Packet Tracer 7.2.2"

$PUBLIC
[1] "C:\Users\Public"

$QML_IMPORT_PATH
[1] "C:\Qt\5.14.0\mingw73_32\qml"

$QSYS_ROOTDIR
[1] "C:\intelFPGA_lite\18.1\quartus\sopc_builder\bin"

$QT_AUTO_SCREEN_SCALE_FACTOR
[1] "auto"

$QT_D3DCREATE_MULTITHREADED
[1] "1"

$QT_DEVICE_PIXEL_RATIO
[1] "auto"

$QUARTUS_ROOTDIR
[1] "C:\intelFPGA_lite\18.1\quartus"

$R_ARCH
[1] "/x64"

$R_COMPILED_BY
[1] "gcc 4.9.3"

$R_DOC_DIR
[1] "C:/PROGRA~1/R/R-3.6.2/doc"

$R_HOME
[1] "C:/PROGRA~1/R/R-3.6.2"

$R_LIBS_USER
[1] "C:/Users/james//R/win-library/3.6"

$R_USER
[1] "C:/Users/james/"

$RMARKDOWN_MATHJAX_PATH
[1] "C:/Program Files/RStudio/resources/mathjax-26"

$RS_LOCAL_PEER
[1] "\\.\pipe\45649-rsession"

$RS_RPOSTBACK_PATH
[1] "C:/Program Files/RStudio/bin/rpostback"

$RS_SHARED_SECRET
[1] "63341846741"

$RSTUDIO
[1] "1"

$RSTUDIO_CONSOLE_COLOR
[1] "256"

$RSTUDIO_CONSOLE_WIDTH
[1] "80"

$RSTUDIO_MSYS_SSH
[1] "C:/Program Files/RStudio/bin/msys-ssh-1000-18"

$RSTUDIO_PANDOC
[1] "C:/Program Files/RStudio/bin/pandoc"

$RSTUDIO_SESSION_PORT
[1] "45649"

$RSTUDIO_USER_IDENTITY
[1] "james"

$RSTUDIO_WINUTILS
[1] "C:/Program Files/RStudio/bin/winutils"

$SESSIONNAME
[1] "Console"

$SOPC_KIT_NIOS2
[1] "C:\intelFPGA_lite\18.1\nios2eds"

$SystemDrive
[1] "C:"

$SystemRoot
[1] "C:\WINDOWS"

$TEMP
[1] "C:\Users\james\AppData\Local\Temp"

$TERM
[1] "xterm-256color"

$TMP
[1] "C:\Users\james\AppData\Local\Temp"

$USERDOMAIN
[1] "DESKTOP-NJ5VRG3"

$USERDOMAIN_ROAMINGPROFILE
[1] "DESKTOP-NJ5VRG3"

$USERNAME
[1] "james"

$USERPROFILE
[1] "C:\Users\james"

$VBOX_MSI_INSTALL_PATH
[1] "C:\Program Files\Oracle\VirtualBox\"

$windir
[1] "C:\WINDOWS"

[1] ".GlobalEnv" "tools:rstudio"
[3] "package:stats" "package:graphics"
[5] "package:grDevices" "package:utils"
[7] "package:datasets" "package:methods"
[9] "Autoloads" "package:base"
Log file: rdesktop.log

(Empty)

Log file: rsession-james.log

18 Mar 2020 02:31:23 [rsession-james] ERROR system error 10053 (An established connection was aborted by the software in your host machine) [request-uri=/events/get_events]; OCCURRED AT: void __cdecl rstudio::session::HttpConnectionImpl::sendResponse(const class rstudio::core::http::Response &) c:\jenkins\workspace\ide\windows-v1.2\src\cpp\session\http\sessionhttpconnectionimpl.hpp:111; LOGGED FROM: void __cdecl rstudio::session::HttpConnectionImpl::sendResponse(const class rstudio::core::http::Response &) c:\jenkins\workspace\ide\windows-v1.2\src\cpp\session\http\sessionhttpconnectionimpl.hpp:116
18 Mar 2020 02:48:10 [rsession-james] ERROR system error 10053 (An established connection was aborted by the software in your host machine) [request-uri=/events/get_events]; OCCURRED AT: void __cdecl rstudio::session::HttpConnectionImpl::sendResponse(const class rstudio::core::http::Response &) c:\jenkins\workspace\ide\windows-v1.2\src\cpp\session\http\sessionhttpconnectionimpl.hpp:111; LOGGED FROM: void __cdecl rstudio::session::HttpConnectionImpl::sendResponse(const class rstudio::core::http::Response &) c:\jenkins\workspace\ide\windows-v1.2\src\cpp\session\http\sessionhttpconnectionimpl.hpp:116
18 Mar 2020 02:49:56 [rsession-james] ERROR system error 10053 (An established connection was aborted by the software in your host machine) [request-uri=/events/get_events]; OCCURRED AT: void __cdecl rstudio::session::HttpConnectionImpl::sendResponse(const class rstudio::core::http::Response &) c:\jenkins\workspace\ide\windows-v1.2\src\cpp\session\http\sessionhttpconnectionimpl.hpp:111; LOGGED FROM: void __cdecl rstudio::session::HttpConnectionImpl::sendResponse(const class rstudio::core::http::Response &) c:\jenkins\workspace\ide\windows-v1.2\src\cpp\session\http\sessionhttpconnectionimpl.hpp:116

Thanks for taking the time to share a diagnostics report.

One thing I notice here:

The trailing separator on this environment variable can cause issues with RStudio. If you check and edit your environment variables, do you see that same path? Does removing the trailing slash make a difference?

You might also try using the preview release of RStudio, to see if you have any better luck there.

Thanks - that really helped. I still have to reinstall a whole mess of packages, but I can now access all of my file system.
A real life saver.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.