Error of sudden "unused argument"

I have no idea why, but I am pretty sure that the following produced the plot some time ago. Can you 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: This is a common problem:

a <- c(0, 2)

gives the same error. What's going on here?

+6
source share
2 answers

Works for me with ggplot2 v 0.9.3.1. Based on your editing, I'm 99% sure that you have another function c()defined in your workspace / loaded somewhere in your search path ( getAnywhere("c")$where) that masks the embedded version.

, ( --vanilla, , / .Rprofile/etc.)

, , rm("c") - , -... (find("c") ...)

+11

textnets, .

https://github.com/cbail/textnets

, , Bail , ! , .

0

Source: https://habr.com/ru/post/1542985/


All Articles