« first day (1402 days earlier)      last day (1773 days later) » 

2:58 AM
@EDi yes, for those with the tools installed or the wherewithal to hunt them down and install them. Seems that appveyor allows the zip binary to be retained so we have that for releases.
Also having CI working as we develop code is useful as we develop code as none of the main dev team uses windows
 
 
1 hour later…
4:00 AM
Anyone want to try to improve this answer of mine?
0
A: Finding sublists in lists in R

thelatemailThis is probably pretty pointless as the other answer is already pretty quick, but this will scale better for very big matrices to identify the rows you want. E.g.: no <- c(1, 1, 1, 1, 1, 0, 0, 0, 0) yes <- c(1, 1, 1, 1, 0, 0, 1, 1, 1) m <- rbind(no,yes,no,yes,no,yes,yes) # 1 2 3 ...

I feel like I'm missing something really obvious to simplify it.
 
4:12 AM
@thelatemail Don't know if it is faster than apply (see my comment) but I suspect so. Nice construct.
 
4:24 AM
@MatthewLundberg - I like your suggestion. While using row and col and indexing is one of my fave ways to speed up things, it is pretty low on obviousness.
 
 
4 hours later…
7:55 AM
@GavinSimpson doing anything non-standard on travis is inelegant. you should see the way I punched it into building a static web site...
 
8:47 AM
 
9:01 AM
@Thomas my brain froze on the first line and i'm rebooting it now.
 
9:47 AM
oh lordie, someone has just asked on r-dev if they can change to git and github...
 
11:14 AM
@Spacedman Not the most eloquent or elaborate argument for git though. "The other kids do it." "I hear its cool."
Ah, and you too gave him flak for that. Yup, yup.
 
I nearly wrote "by Dirk" after "I am often called a github fanboy"
 
I think I mostly complain(ed) about your Python fanboyism.
 
11:31 AM
what am I doing in an R chat room?
 
11:44 AM
We never figured that out either, but more or less gave up wondering.
 
@Spacedman Trolling? Slumming?
 
 
4 hours later…
3:27 PM
I'm just noticing the r-dev webform cran submission thread. much lols
 
3:49 PM
@Spacedman we (a few ropensci folk) have been building a jekyll/ruby plugin that builds Rmd pages to md and deploys them to the ghpages branch. We have travis clone our github repo, build the pages and deploy. All by faking a package source tree sufficient to get r-travis to not complain.
 
@GavinSimpson i think that was the build I spotted was leaking its github key....
 
@Spacedman could've been; how do I check if it was us or that if not us we aren't also doing something silly? Did you file an issue in the docs repo?
 
@GavinSimpson yeah, whoever it was was informed and changed things.... there are ways of getting secrets into travis scripts
 
@Spacedman Right, but if it wasn't us that you noticed being stoopid we may still be being stoopid. I see we have a
env:
 global:
   secure: djklfghkljiohgioheirhemkcm389457895
in our yaml. Is this the correct way to expose a token?
I can't see anything else in our repo that looks vaguely github-key like
 
yeah thats it. that's been encrypted with a private key and as long as you don't echo the envirionment variable in your script so it doesn't appear in the travis log I think you're okay!
the decryption key is private too.
oh, actually the encryption key is public, in case anyone else wants to encrypt stuff for you.
 
 
2 hours later…
5:36 PM
@Spacedman Apparently this question was actually about pass-by-reference. Hopefully your restarted brain can now make sense of it after OP's significant edit. stackoverflow.com/a/25432091/2338862
 
@Thomas, out of curiosity, when did you first start using R?
 
5:54 PM
@Thomas OP wants magic.
 
6:14 PM
@Arun Circa-2008, then I had about a two year hiatus (grad school used Stata), then came back in force in 2012.
Why do you ask?
 
@Thomas, no reason in particular. Reading your comment, "...for someone just starting it's pretty atypical of R's base tools", it made me think of my initial experiences with R, almost everything was atypical ;) (coming from C/C++ background).
So was wondering how your experience was, when you started out R..
 
@Arun Yea, well SPSS and Stata (what most social scientists are trained on) serve as a terrible background for learning how to code. Luckily I did some VB as a kid and spent a lot of time in high school programming my TI-83 instead of paying attention in class.
 
I came across R first during my Masters in Bioinformatics, and decided to never use it. But couldn't escape (as R was/is quite entrenched in my field). As you can see in my first question :).
I see. I have never used SPSS or Stata, gladly.
Nevertheless, having used for about 3 years, loving it now.
 
6:31 PM
@Arun Yea, I was turned off by R at first as well but it's so far superior to the commercial statistical packages that it's shocking anyone continues to use them (save in some areas where Stata has modelling features that aren't implemented in R yet).
 
@GavinSimpson digs the long-dead horse out of its grave, so it can be beaten some more...
 
@JoshuaUlrich referring to the mean() thing? I have no problem that mean doesn't have it's old behaviour. The new behaviour is just stupid and inconsistent with min(), max(), range() etc.
 
@GavinSimpson Don't make me get the GIF... it upsets @Spacedman
 
@JoshuaUlrich Oh, go on...!
 
@Arun, you asked for an efficient solution an accepted a plyr solution... :)
 
6:43 PM
@DavidArenburg He could have meant "efficient" in terms of "his time spent writing code." :)
 
@DavidArenburg, ha :). My fault though. Dint mention efficient in what way...
@JoshuaUlrich right. At the time, I dint realise it would be that slow.
 
@JoshuaUlrich, I see what you mean. It is a common trend in SO
@Arun, I wonder why you haven't neglected R after getting an even slower solution than your 5 times embedded for loop :) On the other hand, it makes sense now why you are authoring data.table now
 
I think that was more or less my first attempt after reading about R. And I remember going for a coffee break and when I came back.. the for-loop was still running. And nothing changed (in-terms of the code still running) with plyr. So, I figured, at least this is shorter to write ;).
 
EDi
 
 
2 hours later…
8:50 PM
Did someone just recommended to migrate a question to datascience.stackexchange.com??
 
@Arun Looks like a close candidate to me ;)
 
@Dason, who you talking to lol
 
@Dason I can't disagree :).
 
9:14 PM
@DavidArenburg - if you put your cursor over my post you can see which post I'm replying to.
 
@Dason, hmmm just learned a new thing re SO chat rooms...
 

« first day (1402 days earlier)      last day (1773 days later) »