« first day (570 days earlier)      last day (2605 days later) » 

8:11 AM
This one needs closing: stackoverflow.com/q/10547224/429846
 
8:34 AM
@joran the big bang is just the universe rebooting to try and fix some problems
2
 
8:50 AM
@Spacedman Then I presume another big bang is imminent?
 
big dark whimper more like, the universe is flat I believe
 
9:22 AM
I wonder where the user got the idea of using '$'() over regular `['. stackoverflow.com/questions/10546826/r-query-on
 
9:48 AM
jQuery?
 
10:10 AM
That was my initial thought.
 
10:51 AM
i want to tag that question [notjquery]
 
What about [!][jQuery]?
 
11:30 AM
@Andrie my wife has recommended rebooting me a time or three
 
11:41 AM
:-)
@JDLong That's why I only wear sandals :-P
 
very good plan!
 
12:05 PM
@Andrie Is that a Futurama reference? :)
 
I didn't think so. Is it?
 
 
2 hours later…
1:43 PM
Yes it is. From the second episode of season one, I think.
Fry is warned that dr. Zoidberg is a bit weird (he wears sandals).
 
 
1 hour later…
2:44 PM
Hello everyone, I'm sorry if my question is so basic, but I don't know how to do this... How do you know the package for a certain function in R? I would like to have a function that given the name of a function, returns the name of the package that owns it. Any suggestion?
 
2:55 PM
@Nestorghh There is a search function in StackOverflow. Also in google. My first search revealed this:
14
Q: How do you you determine the namespace of a function?

Richie CottonGiven a function, how do you determine which namespace it has come from? For example, if I type mean.default at the command prompt, the output includes the fact that it is in the base package. I want to be able to do something like getNamespace(mean.default) and have it return "base" (or the ac...

Exact duplicate. Voting to close:
2
Q: Name of a package for a given function in R

NestorghhI don't know how to do this... How do you know the package name for a certain function in R? I would like to have a function that given the name of a function, returns the name of the package that owns it. Any suggestion?

I notice the police are out in force today on SO.
Good afternoon, @BenBolker
It's nice to see you again.
 
thanks
I forget: when's the book coming out?
 
The Wiley website now says July.
We are supposed to get the proofs on Tuesday.
 
neat!
 
I'm terrified at the thought how many errors we made...
 
have you seen emdbolker.wdfiles.com/local--files/errata/errata.png ? (I haven't updated it in a while, need to do so ...)
(I could post the latest version here but don't know how to do that on SO chat)
 
3:11 PM
@Andrie Are you responsible for all the proofing, or are they having other (R knowledgable) folks read it to check for errors?
 
We had a very capable technical editor, currently lurking in this chat room.
But all errors are exclusively my own.
@BenBolker That's really interesting. How did you keep track of the errata coming in? It seems our publisher has just about zero process to make any of this easy for the authors.
 
I just get e-mails from people and update the errata page emdbolker.wikidot.com/errata and this file: emdbolker.wdfiles.com/local--files/errata/errata-dates.txt (if I were higher-tech I guess I could auto-generate the page too)
(I'm a little bit obsessive about some things)
 
I just hope we also get the chance of a second print!
...
Quick question: I am writing a script that scrapes some R code from the web. I now want to `source()` this code, but I don't really want to first save the file to disk. However, `source()` demands a file. What's the easiest way to get round this?
Do I have to create a textConnection, write the code to it, source() the textConnection and the close the textConnection? Or is there an easier way?
 
3:34 PM
eval(parse(text=mycommands))
 
D'oh
Thank you.
 
fortune(106)
:P
 
While @Spacedman wrote his answer, I came up with this:
sourceInMemory <- function(code, ...){
e <- environment()
tc <- textConnection(code)
source(tc, local=e, ...)
close(tc)
e
}
It seems to work. Returns the environment where the code was executed. Can you see any issues with this?
 
4:32 PM
I'm not sure... but my code review committee of 3 thinks it's great:
 
Great or grate?
 
4:50 PM
good clarification... both...
 
5:05 PM
That really grates.
 
I know what that committee had for breakfast:
 
5:21 PM
thanks to the commercials of my youth, I have spent my life looking for the breakfast cereal to push me out of mediocracy.
2
 
 
2 hours later…
7:06 PM
Growing up in the 80's must have been hard. :)
 
7:46 PM
brutal
 

« first day (570 days earlier)      last day (2605 days later) »