57,122 reputation
5160253
bio website mathprogramming-intro.org
location St. Petersburg, Russia
age 37
visits member for 2 years, 7 months
seen 56 mins ago

Ok, an obligatory note: opinions expressed here are mine and not those of my employer.


Dec
20
comment Special Mathematica Cell to work with R code
@Thomas Yes, it is. There is not much auto-magic,though.You can use ? (Information) to see how rcell is implemented: ?RLink`Private`rcell. The replR function is really just a proxy for REvaluate. The code that generates the cell itself is pretty similar to code of WReach referred to by @rm -rf in his answer. The connection to code highlighter is via this option: CellEventActions->RLink`Private`eventActions. The symbol RLink`Private`eventActions is defined by the highlighter package. The latter is located in the Kernel subfolder of RLink.
Dec
20
awarded  Nice Answer
Dec
20
comment _?NumericQ equivalent for lists
Yes, that's right.
Dec
20
comment _?NumericQ equivalent for lists
Try (VectorQ[#,NumericQ]&)
Dec
20
revised Special Mathematica Cell to work with R code
Added a screen shot and a few remarks
Dec
20
comment Special Mathematica Cell to work with R code
@Mr.Wizard Yes, I was busy mainly because of it. Re:earlier - I told folks that I consult for WRI and was developing RLink right when V9 was released, so about 3 weeks ago, in chat. Somehow I was sure that you saw that chat transcript.
Dec
20
comment Special Mathematica Cell to work with R code
@Mr.Wizard Yep:). I developed RLink. But the highlighter part is experimental and not documented therefore.
Dec
20
revised Special Mathematica Cell to work with R code
deleted 6 characters in body
Dec
20
revised Special Mathematica Cell to work with R code
added 251 characters in body
Dec
20
answered Special Mathematica Cell to work with R code
Dec
19
comment Do you know of any web-based university course that is entirely Mathematica based?
Such courses may exist here and there, but mostly created by professors who are at the same time expert Mathematica users / programmers. I know of only one reference of the kind you look for: Math Desktop software (and it is not web-shared). I am sure others will add more links. But my point is, I am not aware of any general framework for this, and creating a complete such solution in Mathematica requires a very significant programming effort. But I agree that M still is an ideal patform for such things.
Dec
19
awarded  Guru
Dec
19
awarded  Enlightened
Dec
19
awarded  Nice Answer
Dec
19
comment Unexpected result from Flatten
@m_goldberg Was glad to help, and thanks for the accept.
Dec
19
answered Unexpected result from Flatten
Dec
18
comment How can we extend the predictive interface so it can suggest new operations?
Perhaps it is a good idea. I was not sure whether or not yours is a dupe, from the start. Let's see what others think.
Dec
18
comment How can we extend the predictive interface so it can suggest new operations?
Is this the same question as this one?
Dec
18
comment Any built-in function to generate successive sublists from a list?
@rcollyer I did not benchmark (FoldList), but I don't expect them (differences) to be very significant.
Dec
18
comment Any built-in function to generate successive sublists from a list?
@rcollyer I don't consider myself good at them either, just OK. The problem is that Mathematica's execution model often creates rather unnatural preferences for the algorithms implementations. But recursion is very powerful. Actually, I don't know what I would do without it for many problems. It was very important ingredient for RLink, for one thing.