I was surprised when I was calculating derivatives (using the library mosaic) in Rstudio like
Error in D(fun ~ x) : argument "name" is missing, with no default
I tried it in R, it turned out the same problem. Anyone could help? Thanks!