Are u using old ess? This one was fixed some time ago. We are using
randomly generated fnames now and deleting all of them in r.

/Sent from tablet/
On Oct 23, 2013 3:12 PM, "Rodney Sparapani" <rsparapa@mcw.edu> wrote:

> This is a weird one.  I was testing a program called
> /tools/tests/runf1d.R which contains:
> require(inline)
> require(RcppEigen)
>
> runif1d <- cxxfunction(signature(arg1="**numeric",
>                                     arg2="numeric"),
>                           includes='
> #include "/bnp/tools/RcppDPM/src/**rcppdpm.cpp"',
>                           body='
> return wrap(runif1d(as<double>(arg1), as<double>(arg2)));',
>                           plugin="RcppEigen")
>
> set.seed(44)
>
> runif(1, -1, 1)
>
> set.seed(44)
>
> runif1d(-1, 1)
>
> And I accidentally ran it as root.  When I realized my mistake,
> I changed the file permissions to myself and attempted to run
> it again as myself.  And I get an error about a different file...
>
> + . + Error in file(file, ifelse(append, "a", "w")) (from #91) :
>   cannot open the connection
> In addition: Warning message:
> In file(file, ifelse(append, "a", "w")) :
>   cannot open file '/tmp/runif1d.R@1': Permission denied
>
> And sure enough, root owns that file...
> # l /tmp/runif1d.R@1
> -rw-r--r-- 1 root root 422 Oct 23 16:56 /tmp/runif1d.R@1
>
> IMHO this is a bug, but we should be able to work around this.
> For example, could we use R's tempdir() rather than the
> hard coded /tmp?  I don't have more time to investigate now.
> But hopefully this is enough for someone to get going.
>
> --
> Rodney Sparapani, PhD
> Manager of Statistical & Computational Operations
> Center for Patient Care and Outcomes Research (PCOR)
> Medical College of Wisconsin (MCW), Milwaukee, USA
> http://www.linkedin.com/in/**rodneysparapani<http://www.linkedin.com/in/rodneysparapani>
>
> ______________________________**_________________
> ESS-bugs ESS-bugs@r-project.org
> https://stat.ethz.ch/mailman/**listinfo/ess-bugs<https://stat.ethz.ch/mailman/listinfo/ess-bugs>
>
> ______________________________**_________________
> ESS-core list: https://stat.ethz.ch/mailman/**listinfo/ess-core<https://stat.ethz.ch/mailman/listinfo/ess-core>
>

	[[alternative HTML version deleted]]

