Re: [R] Missing dependencies in pkg installs
Duncan Murdoch writes: > On 22/06/2017 5:02 PM, Conklin, Mike (GfK) wrote: > > I am using debug on the .install_packages function...stepping through. > > Once the temporary folder is created and the tar file expanded I run > > file_test and get a FALSE back indicating that the configure file is not > > executable. > > I don't know what is causing this bug. Perhaps a Linux user can > reproduce it and fix it. > > Here's what I see: > > file_test("-x") calls file.access(filename, 1L). That in turn calls the > C library function access(..., X_OK). The ... is the name of the file, > translated into the local encoding and expanded. As far as I can see, > that means ... should be exactly the string below. > > > > [1] "/tmp/RtmpMM6iC1/R.INSTALLc5ca415e4310/stringi" > > The only thing I can think of is that your system is protecting you from > executing a newly created file until some sort of virus or other check > is done. (This is common on Windows, but I've never heard of it before > on Linux.) Just a thought - are you running SELinux ? Check the log files for refusals to run programs. __ 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.
Re: [R] fitting cosine curve
If you know the period and want to fit phase and amplitude, this is equivalent to fitting a * sin + b * cos > >>> > I don't know how to set the approximate starting values. I'm not sure what you meant by that, but I suspect it's related to phase and amplitude. > >>> > Besides, does the method work for sine curve as well? sin is the same as cos with a different phase Any combination of a and b above = c * sin (theta + d) for some value of c and d and = e * cos (theta + f) for some value of e and f. Also for any c,d and for any e,f there is an a,b. the c and e are what I'm calling amplitude, the d and f are what I'm calling phase. __ 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.
Re: [R] understanding I() in lmer formula
The suggestion to post on R-sig-ME was a good one. The problem turned out to be a bug in lmer parsing, which is now fixed. S Ellison writes: > > Is there a difference between I(x*y) and I(y*x) ? > > I have a call to lmer that results in this complaint: > > Error in is.alpha2.subordinate * ~z.min.co.res : > > A reproducible example would help ... __ 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] understanding I() in lmer formula
Is there a difference between I(x*y) and I(y*x) ? I have a call to lmer that results in this complaint: Error in is.alpha2.subordinate * ~z.min.co.res : non-numeric argument to binary operator when I change this line: I(is.alpha2.subordinate*z.min.co.res)+ to this: I(z.min.co.res*is.alpha2.subordinate)+ the complaint goes away. I'd like to understand why. __ 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.