On Thu, Sep 13, 2018 at 6:05 PM Rich Shepard <rshep...@appl-ecosys.com> wrote: > > On Thu, 13 Sep 2018, MacQueen, Don wrote: > > > In my experience, any path that can be used at the shell prompt in a > > unix-alike can be used anywhere that R wants a file name. > > Don, > > That's been my experiences, too. > > > Hopefully, that helps... > > That's why I don't understand why the plot() function accepts the > different directory while the sink() function (here) doesn't. > > I showed R rejecting: > > sink('stat-summaries/estacada-se-precip.txt') > print(summary(estacada_se_wx)) > sink() > > while accepting: > > pdf('../images/rainfall-estacada-se.pdf') > <snip xyplot() function> > plot(rain_est_se) > dev.off() > > Changing the sink() file to > './stat-summaries/estacada-se-precip.txt' > > generates the same error
"same error" as what? (ambiguity is the reason for not being able to help you - all the replies in this thread this far are correct and on the spot) BTW, not that it should matter, what is your operating system and version of R? /Henrik > while I regularly use this syntax to copy files or > specify the relative path to an executable file. > > Regards, > > Rich > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.