Re: [R] [External] Re: Error in setwd(dir) when initializing R

2023-11-22 Thread Ana de las Heras Molina
Thank you all for your help. I was better with Rgui. I have the feeling that it was me, doing something wrong when I uninstalled Onedrive from both computers... I will talk with the IT in the university. Again, thank you for your interest. I have learnt a lot. El mar, 21 nov 2023 a las 19:41,

Re: [R] [External] Re: Error in setwd(dir) when initializing R

2023-11-21 Thread Michael Dewey
Dear Ana When you installed R it gave you an option to put a shortcut on the desktop. If you did that then you can start the R GUI by clicking on it. You may need to customise it for your preferences. Specifically it starts R with an option cd-user-docs which I delete and I then alter the

Re: [R] [External] Re: Error in setwd(dir) when initializing R

2023-11-21 Thread Ana de las Heras Molina
Hello, I am sorry for my ignorance, but what is Rgui.exe? El mar, 21 nov 2023 a las 12:06, Ivan Krylov () escribió: > В Tue, 21 Nov 2023 10:51:59 +0100 > Ana de las Heras Molina пишет: > > > I uninstalled onedrive, I eliminated all the folders and then > > reinstalled R and RStudio... but it

Re: [R] [External] Re: Error in setwd(dir) when initializing R

2023-11-21 Thread Ana de las Heras Molina
Hi, 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. This is what I obtained with the debugging Error in setwd(dir) : no es

Re: [R] [External] Re: Error in setwd(dir) when initializing R

2023-11-21 Thread J C Nash
This is likely tangential, but as a Linux user I have learned to avoid any directory name with - or ( or ) or other things, even spaces. Whether or not those are "valid", they seem to cause trouble. For example "-" can be picked up in bash scripts as a trigger for options. And in this case, it

Re: [R] [External] Re: Error in setwd(dir) when initializing R

2023-11-21 Thread Ivan Krylov
В Tue, 21 Nov 2023 13:41:41 +0100 Ana de las Heras Molina пишет: > 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,

Re: [R] [External] Re: Error in setwd(dir) when initializing R

2023-11-21 Thread Ivan Krylov
В Tue, 21 Nov 2023 10:51:59 +0100 Ana de las Heras Molina пишет: > 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

Re: [R] [External] Re: Error in setwd(dir) when initializing R

2023-11-21 Thread Ivan Krylov
On Tue, 21 Nov 2023 08:46:25 +0100 Ana de las Heras Molina wrote: > > traceback() > 4: setwd(dir) > 3: .rs.onAvailablePackagesStale(reposString) > 2: .rs.availablePackages() > 1: .rs.rpc.discover_package_dependencies("3C994FEC", ".R") This is something that RStudio (not R itself!) does, but it

Re: [R] [External] Re: Error in setwd(dir) when initializing R

2023-11-20 Thread Ana de las Heras Molina
Hello, Thank you all for your responses. When I initialize R, the folder in which it starts is: getwd() [1] "C:/Users/Ana/OneDrive - Universidad Complutense de Madrid (UCM)/Documentos" So it seems a problem with OneDrive -Kevin: I do not really understand your question... You mean if I set my

Re: [R] [External] Re: Error in setwd(dir) when initializing R

2023-11-20 Thread luke-tierney
On Mon, 20 Nov 2023, Ivan Krylov wrote: On Mon, 20 Nov 2023 12:18:11 +0100 Ana de las Heras Molina wrote: Error in setwd(dir) : no es posible cambiar el directorio de trabajo If you run traceback() first thing after getting this error, does it say anything useful? (Anything besides "No