[R] sink() output to another directory
bgunter@4567 @end|ng |rom gm@||@com
Fri Sep 14 04:30:27 CEST 2018
I find your "explanation" confusing. You appear to be misusing
print(). Please read ?print carefully. You print objects in R, not
files. Objects in R do not have "/" in their names (without some
trickery). See ?make.names .
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Thu, Sep 13, 2018 at 7:12 PM Rich Shepard <rshepard using appl-ecosys.com> wrote:
> On Thu, 13 Sep 2018, Henrik Bengtsson wrote:
> >> 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?
> As I wrote in earlier messages:
> results in
> 24: sink('stat-summaries/estacada-wnw-precip.txt')
> 25: print(/
> Does not matter if I use single or double quotes.
> The message that print() doesn't like the forward slash results when I
> specify 'stat-summaries/estacada-wnw-precip.txt' or
> Running R-3.5.1 on Slackware-14.2.
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help