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

Ana de las Heras Molina @nde|@@h @end|ng |rom ucm@e@
Wed Nov 22 10:17:38 CET 2023


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, Michael Dewey (<lists using dewey.myzen.co.uk>)
escribió:

> 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
> starting option to start in the directory I want. You may have different
> preferences of course.
>
> Try Rgui as Ivan suggests and report back what happened.
>
> You may have to ask your local IT support as if this is something the
> Complutense is setting up it is surprising that all your collegues are
> free of problems. Have you asked around?
>
> Michael
>
> On 21/11/2023 12:41, Ana de las Heras Molina wrote:
> > 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 using gmail.com>)
> > escribió:
> >
> >> В Tue, 21 Nov 2023 10:51:59 +0100
> >> Ana de las Heras Molina <andelash using 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
> >>
> >
> >
>
> --
> Michael
>


-- 
*Ana de las Heras Molina*


Nutrición Animal
Departamento de  Producción Animal
Facultad de Veterinaria
Universidad Complutense de Madrid

*Contacto*: 913943855/anaherasm using ucm.es

	[[alternative HTML version deleted]]



More information about the R-help mailing list