Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ihaskell-rlangqq usage example #1179

Open
birnam opened this issue Jul 17, 2020 · 0 comments
Open

ihaskell-rlangqq usage example #1179

birnam opened this issue Jul 17, 2020 · 0 comments

Comments

@birnam
Copy link

birnam commented Jul 17, 2020

I've been toying with all of the ihaskell-display packages, and have been up to successfully render all of them (sort of) except ihaskell-rlangqq. I can't figure out how to get this to work, can I have a small usage example?

I've tried this:

:extension QuasiQuotes

import IHaskell.Display.Rlangqq

x = [0 .. 10  :: Double]

[rDisp|library(ggplot2)
    plot(qplot( hs_x, $(map (sin . (*pi) . (/10)) x) ))
    dev.off()|]

And only receive this error:

Warning message:
In in_dir(input_dir(), evaluate(code, envir = env, new_device = FALSE, :
You changed the working directory to /opt/notebooks/haskell (probably via setwd()). It will be restored to
/opt/notebooks/haskell/Rtmp/b94dbcfc. See the Note section in ?knitr::knit

If I insert something like svg(file="test.svg") the rendering works, it just doesn't show in my labs notebook.

I've heard that RLang-QQ is being deprecated, but I'd appreciate some guidance on this just so I can get something to show, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant