I'm going to take a wild guess here and say that when R is installed on a Windows machine, the default start icon parameters are:

"C:\Program Files\R\R-3.5.0\bin\i386\Rgui.exe" --cd-to-userdocs

Maybe this can beĀ  changed to "--cd-to-userdesktop" or something. I couldn't find anything in the R manuals to help with this.

-peter

On 09/13/2018 8:31 AM, Raniere Silva wrote:
Hi all,

I was teaching R yesterday and when running

setwd(("~/Desktop"))

the users of Windows went to "C:\Users\Foo\Documents\Desktop" instead of "C:\Users\Foo\Desktop".

Did you see similar behaviour before?

Cheers,
Raniere
*The Carpentries <https://carpentries.topicbox.com/latest>* / discuss / see discussions <https://carpentries.topicbox.com/groups/discuss> + participants <https://carpentries.topicbox.com/groups/discuss/members> + delivery options <https://carpentries.topicbox.com/groups/discuss/subscription> Permalink <https://carpentries.topicbox.com/groups/discuss/Tdeb023c3d8873d39-M4f43fa22d3ee362bf2d9fca9>

--
Sig8
Peter R. Hoyt,
Oklahoma State University


------------------------------------------
The Carpentries: discuss
Permalink: 
https://carpentries.topicbox.com/groups/discuss/Tdeb023c3d8873d39-Md76f7f44fa811a52ca69e3a1
Delivery options: https://carpentries.topicbox.com/groups/discuss/subscription

Reply via email to