title: Cannot save ggplot2 graph with ggsave on Mac
body: <p>After successfully creating a graph with this code:</p>
  
  <pre><code>qplot(ethcat3, Percent, data=g_02_1b_pov, geom="bar", stat="identity")
  </code></pre>
  
  <p>I would like to save the graph as a png, pdf, or jpeg file. I used the following code:</p>
  
  <pre><code>ggsave(ﬁle="test.png") 
  </code></pre>
  
  <p>Instead of outputting the graph, I receive the following (error) message:</p>
  
  <pre><code>Saving 7.82 x 3.75 in image
  Error in eval(expr, envir, enclos) : attempt to apply non-function
  </code></pre>
  
  <p>and no file is saved. (Instead of png, I also tried the extensions pdf, and jpeg).</p>
  
  <p>I found in a forum that I should use the command: dev_mode() and has_devel()</p>
  
  <p>the output of dev_mode is:</p>
  
  <pre><code>&gt; dev_mode()
  Dev mode: OFF
  </code></pre>
  
  <p>and</p>
  
  <pre><code>&gt; has_devel()
  /Library/Frameworks/R.framework/Resources/bin/R --vanilla CMD SHLIB foo.c 
  
  sh: make: command not found
  Error: Command failed (1)
  </code></pre>
  
  <p>However, I don't know what to do with this feedback?</p>
  
  <p>Can anyone help me with this problem? I think I used the same approach in the past on a PC and it worked without a problem. I'm wondering if it is connected to my installation on a mac?</p>
  
  <p>Thanks a lot!</p>
  
  <p>Addition: @DWin asked for the <code>sessionInfo()</code> output:</p>
  
  <pre><code>d&gt; sessionInfo() 
  R version 2.15.1 (2012-06-22)
  Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
  
  locale:
  [1] C/en_US.UTF-8/C/C/C/C
  
  attached base packages:
  [1] stats     graphics  grDevices utils     datasets  methods   base     
  
  other attached packages:
  [1] devtools_0.8    reshape2_1.2.1  plyr_1.7.1      ggplot2_0.9.2.1
  
  loaded via a namespace (and not attached):
   [1] MASS_7.3-18        RColorBrewer_1.0-5 RCurl_1.95-3       colorspace_1.2-0  
   [5] dichromat_1.2-4    digest_0.5.2       evaluate_0.4.2     grid_2.15.1       
   [9] gtable_0.1.1       httr_0.2           labeling_0.1       memoise_0.1       
  [13] munsell_0.4        parallel_2.15.1    proto_0.3-9.2      scales_0.2.2      
  [17] stringr_0.6.1      tools_2.15.1       whisker_0.1    
  </code></pre>