Rapporter / pander

An R Pandoc Writer: Convert arbitrary R objects into markdown
http://rapporter.github.io/pander/
Open Software License 3.0
294 stars 65 forks source link

Attempt to fix Issue 263 #264

Open yasirs opened 8 years ago

yasirs commented 8 years ago

sapply returns a matrix when it should return a list

https://github.com/Rapporter/pander/issues/263

yasirs commented 8 years ago

I seem to be having a problem using my supposed fix because of the way R assigns to data frames. Consider:

> a <- data.frame(a=c(1,2), b=c(2,3), c=c("a,b","c,d"), stringsAsFactors = F)
> a$c <- strsplit(a$c, ",")

Now, a simple re-assignment fails:

> a[,3] <- a[,3]
Warning message:
In `[<-.data.frame`(`*tmp*`, , 3, value = list(c("a", "b"), c("c",  :
  provided 2 variables to replace 1 variables
codecov-io commented 8 years ago

Current coverage is 79.40% (diff: 52.94%)

Merging #264 into master will decrease coverage by 0.13%

Powered by Codecov. Last update 2c1b479...78a7c64