Hi all,

We have seen this in our own scientific work - namely that '~' in R is
expanded `~/Documents' (at least in Windows). If anyone has suggestions on
how/why this works as it does, I would be greatly appreciative...

Cheers,
Matt

On Thu, Sep 13, 2018 at 3:41 PM Pariksheet Nanda <[email protected]>
wrote:

> I remember running into something similar with git + RStudio lesson and I
> think that was related to how RStudio redefines some environmental
> variables on Windows.
>
> ---
> Pariksheet Nanda
> PhD Candidate in Genetics and Genomics
> System Administrator, Storrs HPC Cluster
> University of Connecticut
>
>
>
> On Thu, Sep 13, 2018 at 9:38 AM Ashwin Srinath <[email protected]>
> wrote:
>
>> Raniere,
>>
>> Yes, I've had lots of issues similar to this one, where "~/Desktop" is
>> actually some other directory (not the Desktop that users "see" when they
>> log in). I don't know a good solution other than to ask them to keep this
>> folder open in a file manager. It's good to be prepared to deal with this
>> issue at each workshop.
>>
>> Thanks,
>> Ashwin
>>
>> On Thu, Sep 13, 2018 at 9:31 AM, Raniere Silva <[email protected]>
>> 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-M4627ac0fec1ec2749953a2cb>
>

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

Reply via email to