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

2018-10-27 Thread Ista Zahn
On Sat, Oct 27, 2018 at 4:57 PM 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. I am of course happy to be seen as Miracle Worker, but I assure y

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

2018-10-27 Thread Rich Shepard
:46:22 -0700 (PDT) From: Rich Shepard To: r-help@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 conte

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

2018-10-27 Thread Jeff Newmiller
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. On October 27, 2018 1:38:40 PM PDT, Duncan Murdoch wrote: >On 27/10/2018 9:35 AM, Ista Zahn wrote: >> On Fri, Oct 26, 2018 at

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

2018-10-27 Thread Duncan Murdoch
On 27/10/2018 9:35 AM, Ista Zahn wrote: On Fri, Oct 26, 2018 at 10:42 PM Jeff Newmiller wrote: I haven't seen mention of what OS or filesystem types are involved, but it superficially looks like it might be one of those cases where the filesystem is case-sensitive... check that all your dire

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

2018-10-27 Thread Rich Shepard
On Sat, 27 Oct 2018, Rich Shepard wrote: thread here. 'Here' meaning on alpine on my workstation, not on the mail list. Rich __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

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

2018-10-27 Thread Rich Shepard
On Sat, 27 Oct 2018, Ista Zahn wrote: Just out of curiosity -- are my messages to r-help not going through? I correctly diagnosed the problem as a simple typo in my message on Oct 26 at 2:54 PM, but then the discussion just continued as if that never happened. I responded to you and Jeff (hi

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

2018-10-27 Thread Bert Gunter
Your messages got through fine (to me, anyway). I suspect people are just failing to read through the threads. -- Bert On Sat, Oct 27, 2018 at 6:35 AM Ista Zahn wrote: > On Fri, Oct 26, 2018 at 10:42 PM Jeff Newmiller > wrote: > > > > I haven't seen mention of what OS or filesystem types are i

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

2018-10-27 Thread Ista Zahn
On Fri, Oct 26, 2018 at 10:42 PM Jeff Newmiller wrote: > > I haven't seen mention of what OS or filesystem types are involved, but it > superficially looks like it might be one of those cases where the filesystem > is case-sensitive... check that all your directory and file names are > capitali

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

2018-10-26 Thread Jeff Newmiller
I haven't seen mention of what OS or filesystem types are involved, but it superficially looks like it might be one of those cases where the filesystem is case-sensitive... check that all your directory and file names are capitalized correctly. On October 26, 2018 1:11:19 PM PDT, Jeremie Juste

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

2018-10-26 Thread Jeremie Juste
Hello, I suspect the error is in the file input-summerize.R. I creating a new file input-summerize2.R with only print("hello") for instance and check if > setwd("~/documents/white-papers/geochemistry/willamette-river-mercury/scripts") > source("input-summerize2.R") works Hope it helps, Jerem

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

2018-10-26 Thread Rich Shepard
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 misssi

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

2018-10-26 Thread Ista Zahn
On Fri, Oct 26, 2018 at 2:16 PM Rich Shepard wrote: > > On Fri, 26 Oct 2018, Ista Zahn wrote: > > > I'm confused. It seems the error is that the file can't be found; if > > so, what does it matter what is in the file? > > Ista, > >Beats me. > > > As far as I can see you are either not in the d

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

2018-10-26 Thread Rich Shepard
On Fri, 26 Oct 2018, Ista Zahn wrote: I'm confused. It seems the error is that the file can't be found; if so, what does it matter what is in the file? Ista, Beats me. As far as I can see you are either not in the directory you think you are, or b) the file is not named what you think it

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

2018-10-26 Thread Ista Zahn
Hi Rich, I'm confused. It seems the error is that the file can't be found; if so, what does it matter what is in the file? As far as I can see you are either not in the directory you think you are, or b) the file is not named what you think it is. Best, Ista On Fri, Oct 26, 2018 at 12:30 PM Rich

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

2018-10-26 Thread Rich Shepard
I'm not seeing my error even after reading ?source and a couple of web fora threads. Running R-3.5.1 on Slackware-14.2. The scripts/ directory has the file 'input-summarize.R' with these lines: sites <- read.table('../data/stations.dat', header=T, sep=',', stringsAsFactors=T) sink('../analy