[R] source() fails in same directory as script: cannot find file

Rich Shepard r@hep@rd @end|ng |rom @pp|-eco@y@@com
Sat Oct 27 23:05:58 CEST 2018


On Sat, 27 Oct 2018, Jeff Newmiller wrote:

> FWIW the diagnosis of misspelling appeared, ah, miraculous as the OP
> appeared consistent in using the incorrect spelling and the diagnosis was
> not confirmed by the OP.

>From rshepard using appl-ecosys.com Fri Oct 26 12:46:22 2018
Date: Fri, 26 Oct 2018 12:46:22 -0700 (PDT)
From: Rich Shepard <rshepard using appl-ecosys.com>
To: r-help using r-project.org
Subject: Re: [R] source() fails in same directory as script: cannot find file [FIXED]

On Fri, 26 Oct 2018, Ista Zahn wrote:

> No, the script is _not_ there. Compare your code:
>
>> source('input-summarize.R')
>
> to the contents of the directory:
>
>> input-summerize.R

> The moral of the story is, use tab-completion or copy/paste.

Ista,

    Thanks for catching the typo that I kept misssing. I mis-named the script
and didn't see that on the emacs buffer frame.

Best regards,

Rich




More information about the R-help mailing list