Ivan Krylov
2023-Nov-21 11:06 UTC
[R] [External] Re: Error in setwd(dir) when initializing R
? Tue, 21 Nov 2023 10:51:59 +0100 Ana de las Heras Molina <andelash at ucm.es> ?????:> I uninstalled onedrive, I eliminated all the folders and then > reinstalled R and RStudio... but it is RStudio the one creating a > folder called C:\Users\Ana\OneDrive - Universidad Complutense de > Madrid (UCM)\Documentos.Does Rgui.exe use a different home directory from RStudio? Perhaps you need not to reinstall RStudio (which deletes and recreates the program files which aren't damaged) but to wipe the profile (the settings somewhere under %APPDATA% or %LOCALAPPDATA%), but it pays to be extra careful about these directories. People at <https://community.rstudio.com/> may know more about that. I'm afraid I don't know how to disable OneDrive on a Windows 10 installation. If your university has a Microsoft support contract, it could be worth asking the Microsoft representative to fix OneDrive so that temporary files would work on it and telling them the steps to reproduce the problem.> Browse[1]> dir.exists(dir) > [1] TRUE > Browse[1]> setwd(dir) > Error durante el wrapup: no es posible cambiar el directorio de > trabajoWhat is the value of `dir` at this point? (What does print(dir) say?) Can you open this directory in Windows Explorer? If possible, could you please set your mailer to compose messages in plain text instead of HTML? The plain text versions of your messages that your mailer generates from the HTML messages are somewhat mangled: https://stat.ethz.ch/pipermail/r-help/2023-November/478593.html -- Best regards, Ivan
Ana de las Heras Molina
2023-Nov-21 12:41 UTC
[R] [External] Re: Error in setwd(dir) when initializing R
Hello, I am sorry for my ignorance, but what is Rgui.exe? El mar, 21 nov 2023 a las 12:06, Ivan Krylov (<krylov.r00t at gmail.com>) escribi?:> ? Tue, 21 Nov 2023 10:51:59 +0100 > Ana de las Heras Molina <andelash at ucm.es> ?????: > > > I uninstalled onedrive, I eliminated all the folders and then > > reinstalled R and RStudio... but it is RStudio the one creating a > > folder called C:\Users\Ana\OneDrive - Universidad Complutense de > > Madrid (UCM)\Documentos. > > Does Rgui.exe use a different home directory from RStudio? Perhaps you > need not to reinstall RStudio (which deletes and recreates the program > files which aren't damaged) but to wipe the profile (the settings > somewhere under %APPDATA% or %LOCALAPPDATA%), but it pays to be extra > careful about these directories. People at > <https://community.rstudio.com/> may know more about that. > > I'm afraid I don't know how to disable OneDrive on a Windows 10 > installation. If your university has a Microsoft support contract, it > could be worth asking the Microsoft representative to fix OneDrive so > that temporary files would work on it and telling them the steps to > reproduce the problem. > > > Browse[1]> dir.exists(dir) > > [1] TRUE > > Browse[1]> setwd(dir) > > Error durante el wrapup: no es posible cambiar el directorio de > > trabajo > > What is the value of `dir` at this point? (What does print(dir) say?) > Can you open this directory in Windows Explorer? > > If possible, could you please set your mailer to compose messages in > plain text instead of HTML? The plain text versions of your messages > that your mailer generates from the HTML messages are somewhat mangled: > https://stat.ethz.ch/pipermail/r-help/2023-November/478593.html > > -- > Best regards, > Ivan >-- *Ana de las Heras Molina* Nutrici?n Animal Departamento de Producci?n Animal Facultad de Veterinaria Universidad Complutense de Madrid *Contacto*: 913943855/anaherasm at ucm.es [[alternative HTML version deleted]]
Ivan Krylov
2023-Nov-21 13:14 UTC
[R] [External] Re: Error in setwd(dir) when initializing R
? Tue, 21 Nov 2023 13:41:41 +0100 Ana de las Heras Molina <andelash at ucm.es> ?????:> I am sorry for my ignorance, but what is Rgui.exe?It's the graphical user interface that comes with R itself: https://cran.r-project.org/bin/windows/base/README.R-4.3.2 If you haven't changed any settings while installing R, it should be located at C:\Program Files\R\R-4.3.2\bin\x64\Rgui.exe. You won't see the errors from .rs.rpc.discover_package_dependencies(...), but I'm curious whether your problems with LinDa / ANCOMBC / phyloseq can be reproduced with plain Rgui.exe. -- Best regards, Ivan