randy3k / radian

A 21 century R console
MIT License
2k stars 76 forks source link

Ipython style magic commands #338

Open bjeffrey92 opened 2 years ago

bjeffrey92 commented 2 years ago

Firstly, I'm a big fan of radian. Thanks for creating it, I've been looking for something like this for a while

Additional feature suggestion: Would it be possible to create "magic commands", similar to those used by Ipython, in radian such as these?

eg: r$> %time <do something>

randy3k commented 2 years ago

It is technically possible. Basically, we need to modify the content of the input in this line and pass the modified input to R.