Quasiquoter parse error after setup

45 views
Skip to first unread message

Cody Goodman

unread,
Sep 9, 2015, 1:16:25 PM9/9/15
to haskellr


I followed this instructions:

$ git clone http://github.com/tweag/HaskellR
$ cd
HaskellR
$ stack
--docker build
$ stack
--docker exec ihaskell install

And get started in your browser:
$ stack
--docker exec ipython notebook


Then I opened 127.0.0.1:8888, and got the following error:


[r| require("ggplot2") |]

Parse error (line 1, column 23): parse error on input ‘]’


I'm using:

~ $ stack --version
Version 0.1.4.1 (UNKNOWN commits) X86_64
~ $ uname -r
3.16.0-38-generic
~ $ cat /etc/issue
Ubuntu 15.04 \n \l

Boespflug, Mathieu

unread,
Sep 9, 2015, 5:34:22 PM9/9/15
to Cody Goodman, haskellr, andrew.g...@gmail.com
Hi Cody,

have a look at the IHaskell/HaskellR tutorial found here:
https://github.com/tweag/HaskellR/blob/master/IHaskell/examples/tutorial-ihaskell-inline-r.ipynb.

You'll notice that the first line of code is basically turning on the
quasiquotation extension. In H, this is turned on by default, but we
haven't found a way to get it turned on by default in IHaskell as well
yet. Maybe Andrew Gibiansky has an idea.

Best,
--
Mathieu Boespflug
Founder at http://tweag.io.


On 9 September 2015 at 19:16, Cody Goodman
> --
> You received this message because you are subscribed to the Google Groups
> "haskellr" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to haskellr+u...@googlegroups.com.
> To post to this group, send email to hask...@googlegroups.com.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/haskellr/0e2884e5-4347-41a8-bf1e-4e92af5b2d32%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Cody Goodman

unread,
Sep 10, 2015, 12:02:15 AM9/10/15
to haskellr
I think the best solution would be to add:

Visit http://localhost:8888/notebooks/IHaskell/examples/tutorial-ihaskell-inline-r.ipynb in your browser for an interactive tutorial.

right after:


And get started in your browser:
$ stack --docker exec ipython notebook

and above the image of that page. Otherwise the user will have to do some exploring around and might assume setup didn't work like I did.

Boespflug, Mathieu

unread,
Sep 10, 2015, 9:41:58 AM9/10/15
to Cody Goodman, haskellr
Hi Cody,

good idea! This should be fixed now in the latest build instructions
on the website.

Best,
--
Mathieu Boespflug
Founder at http://tweag.io.


On 10 September 2015 at 06:02, Cody Goodman
> https://groups.google.com/d/msgid/haskellr/c4425219-fc8d-423b-aab5-0b1814c1daeb%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages