I suffer too. Please see our discussion on this issue # 269 on Github .
This seems to be a problem with post-release 0.1, where you need to "smooth out" variables using as.numeric
.
Release
The example and solution given by XD-DENG were and quoted them:
"The error disappeared when I use
temp <- tapply(iris$Sepal.Length, iris$Species, mean) result <- data.frame(species = names(temp), mean = as.numeric(temp)) return(result)
instead:
temp <- tapply(iris$Sepal.Length, iris$Species, mean) result <- data.frame(species = names(temp), mean = temp) return(result)
The main difference is whether the column means additional attribution, a dimension. This caused an error.
But this is still strange given that version 0.1 of DT works fine on both. "
PATCH
@yihui made a fix for this version, so try updating the DT
package. (You can use the devtools package to install from github devtools::install_github('rstudio/DT')
)
I hope this fixes this intermittent error.
source share