tweag / HaskellR

The full power of R in Haskell.
https://tweag.github.io/HaskellR
Other
585 stars 47 forks source link

Using hexp to pretty-print SEXP returned by [r|expr|] #340

Open djsamperi opened 5 years ago

djsamperi commented 5 years ago

It would be useful to view/pretty-print the SEXP structure returned by [r|expr|] using hexp. In particular, the R parse tree could be viewed using [r|parse(expr)|].

qnikst commented 5 years ago

Will inspect work for you, or you need something more structured?

djsamperi commented 3 years ago

If I set x <- [r|some-r-expr|], how would I use inspect to view the SEXP structure n the R side corresponding to x? If I understand correctly, hexp can only provide a partial (single-unroll) view.