0

Why does "draw" not work when run inside ESS + emacs (but works fine using the interpreter conventionally "julia myfile.jl")?

using Gadfly
draw(SVG("output.svg", 6inch, 3inch), plot([sin, cos], 0, 25))

julia> ERROR: draw not defined

0.3.0-prerelease+1940

ess-20140120.43

Gadfly 0.2.5

Emacs 24.3.1

user492922
  • 925
  • 2
  • 12
  • 23
  • It does work for me. Are you sure Gadfly is installed? Does using Gadfly show any errors? – Jeremy Wall Mar 11 '14 at 02:05
  • I get a ton of ambiguous definition warnings when I "use" any package. – user492922 Mar 11 '14 at 04:08
  • does Gadfly.draw work? have you tried whos(Gadfly) to see what exported symbols it has? That would tell you if you successfully loaded Gadfly at least and if the Gadfly version you loaded exports the draw function. – Jeremy Wall Mar 11 '14 at 15:00
  • Seems to be working for me now. I have no idea what was wrong. I believe Gadfly was loading properly because "plot" was working. – user492922 Mar 11 '14 at 18:42

1 Answers1

0

Working now. I don't know what I did differently.

user492922
  • 925
  • 2
  • 12
  • 23