Hi,
if I run
update <- function (newtime) { ginput <<- list(time=newtime)}
server <- function (input) {
print(paste("Before", input$time))
update(1)
print(paste("After:", input$time))
}
ginput <- list(time=0)
server(ginput)
then I get as result
[1] "Before 0"
[1] "After: 0"
If I uncomm
G'day Sigbert,
long time no see :)
How is Berlin these days?
On Thu, 21 May 2015 11:45:26 +0200
Sigbert Klinke wrote:
It is a feature.
> if I run
>
> update <- function (newtime) { ginput <<- list(time=newtime)}
>
> server <- function (input) {
> print(paste("Before", input$time))
> upda
New Mailing list: R-package-devel -- User R Packages Development
At last week's monthly meeting, the R foundation has decided to
create a new mailing list in order to help R package authors in
their package development and testing.
The idea is that some experienced R programmers (often those
cur
In line
John Kane
Kingston ON Canada
> -Original Message-
> From: yishinlin...@gmail.com
> Sent: Thu, 21 May 2015 10:13:54 +0800
> To: gabriel.wein...@gmail.com
> Subject: Re: [R] Vincentizing Reaction Time data in R
>
> On Wed, 20 May 2015 18:13:17 +0800,
> Hi Gabriel,
>
> As far as I
Well..
"Because the global variable is changed before input is evaluated. R
has lazy argument evaluation, arguments are only evaluated once they
are needed. You are essentially getting bitten by R's lazy evaluation
plus "pass by value" syntax."
While I may be either wrong or just picking on sem
On 21 May 2015, at 16:26 , Bert Gunter wrote:
> Well..
>
> "Because the global variable is changed before input is evaluated. R
> has lazy argument evaluation, arguments are only evaluated once they
> are needed. You are essentially getting bitten by R's lazy evaluation
> plus "pass by value"
If you add a print statement to trace the evaluation of the input argument
you can see how the lazy evaluation works:
> update <- function (newtime) {
cat("# update() is changing global ginput's time from", ginput$time,
"to", newtime, "\n")
ginput <<- list(time = newtime)
}
> server <-
Hi all,
I represent R users vs. IT dept. at my workplace (yes, an enviable task :)
We've managed to get a workable network-based R application, for people who
work remotely, or don't have a machine (i.e., they use a VDI terminal).
Everything in this organization is staunchly Windows and Microsoft
Bert : Thank you for your advice, it would be a little bit difficult to
do it for my master thesis but, if I want to go further with a PhD
thesis (and I do want), I would probably follow your advice and get in
touch with a statistician.
Yishin : Thank you very much for the references, I will d
Thanks William/Duncan!
Duncan - Yes - I am using the doBy package.
running this line on the sample data below gives weights for V5,V44, & V2.
Ideally I would like 0's for V8 and V10 in the output.
So it would look like:
e<-structure(matrix(c("V5", "0.008714910", "V8", "0", "V10", "0", "V44"
On 21/05/2015 12:21 PM, Assaf P. Oron wrote:
Hi all,
I represent R users vs. IT dept. at my workplace (yes, an enviable task :)
We've managed to get a workable network-based R application, for people who
work remotely, or don't have a machine (i.e., they use a VDI terminal).
Everything in this
3.2 library is in a different directory than 3.1 library.
You might benefit from reading the discussion about packages in the
installation manual for R.
---
Jeff NewmillerThe . . Go
Thanks for the quick response.
@Duncan: The IT person says he cannot rename the binary. Naturally that's
the first suggestion I made to him. I found it odd but he's the IT person
not me.
OTOH if I have authoritative word from the R team that it's perfectly
doable, I can get back to him :)
@Jeff:
Assaf: they are named differently when you run different versions. 3.1 and 3.2
are different, but 3.1.1 and 3.1.2 are both in the 3.1 directory.
---
Jeff NewmillerThe . . Go Live...
D
and yet I checked manually :
pkg-config --print-variables cairo
exec_prefix
prefix
libdir
includedir
something weird is going on with this
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-hel
I am looking at the instructions on
http://cran.r-project.org/doc/manuals/r-patched/R-admin.html#ATLAS
I have noticed that ATLAS produces two shared libs in addition to the
*.a files:
http://math-atlas.sourceforge.net/atlas_install/node22.html
contents of the ATLAS lib directory:
libatlas.a
I renamed your 'c' to be 'toyData' and your 'e' to be 'desiredResult'. Do
you
want the following, which uses only base R code?
> vapply(toyData,
FUN=function(V)with(V, sum(Wgt[SPCLORatingValue>16])),
FUN.VALUE=0)
V5 V8 V10 V44
This is perfect! Thanks William!!!
Vince
> On May 21, 2015, at 3:36 PM, William Dunlap wrote:
>
> I renamed your 'c' to be 'toyData' and your 'e' to be 'desiredResult'. Do you
> want the following, which uses only base R code?
>
> > vapply(toyData,
> FUN=function(V)with(V, sum(
18 matches
Mail list logo