r - Sudden "unused argument" error -


i have no idea why quite sure following did produce plot while back. can tell me what's wrong here?

library(ggplot2) qplot(c(0, 2), stat="function", fun=exp, geom="line")  

this returns "error in c(0, 2) : unused argument (2)." why?

edit: general problem:

a <- c(0, 2) 

gives same error. what's going on here?

works me ggplot2 v 0.9.3.1. based on edit, i'm 99% sure have different c() function defined in workspace/loaded somewhere in search path (getanywhere("c")$where), masking built-in version.

to test, try starting clean session (with --vanilla if possible skip reloading workspace/executing .rprofile/etc.)

if you're lucky problem in global workspace , rm("c") work -- otherwise have track down package loading booby trap ... (find("c") useful in case ...)


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -