You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have encountered a very strange behavior of knitr that appears only in very specific conditions. It seems that there is something wrong with the internal knit from spin function.
## Linear mixed model fit by REML
## Formula: Reaction ~ Days + (Days | Subject)
## Data: sleepstudy
## AIC BIC logLik deviance REMLdev
## 1756 1775 -872 1752 1744
## Random effects:
## Groups Name Variance Std.Dev. Corr
## Subject (Intercept) 612.1 24.74
## Days 35.1 5.92 0.066
## Residual 654.9 25.59
## Number of obs: 180, groups: Subject, 18
##
## Fixed effects:
## Estimate Std. Error t value
## (Intercept) 251.41 6.82 36.8
## Days 10.47 1.55 6.8
##
## Correlation of Fixed Effects:
## (Intr)
## Days -0.138
print(m, cor=FALSE)
## Linear mixed model fit by REML
## Formula: Reaction ~ Days + (Days | Subject)
## Data: sleepstudy
## AIC BIC logLik deviance REMLdev
## 1756 1775 -872 1752 1744
## Random effects:
## Groups Name Variance Std.Dev. Corr
## Subject (Intercept) 612.1 24.74
## Days 35.1 5.92 0.066
## Residual 654.9 25.59
## Number of obs: 180, groups: Subject, 18
##
## Fixed effects:
## Estimate Std. Error t value
## (Intercept) 251.41 6.82 36.8
## Days 10.47 1.55 6.8
if I use print(m) instead of print(m, cor = FALSE), the output fo this part is correct.
And if I use the compile HTML notebook button from Rstudio(0.97.332) using spin the output is correct too.
Really strange...
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.
Hello
I have encountered a very strange behavior of knitr that appears only in very specific conditions. It seems that there is something wrong with the internal knit from spin function.
Consider the following R script example :
If I use
spin("myscript.R", report=FALSE)
I obtain 2 files : myscript.md and myscript.Rmd.The md file does not print correctly the results :
But if I knit the Rmd file generated by spin
knit("myscript.Rmd")
, the resulting md file is correct :if I use
print(m)
instead ofprint(m, cor = FALSE)
, the output fo this part is correct.And if I use the compile HTML notebook button from Rstudio(0.97.332) using spin the output is correct too.
Really strange...
The text was updated successfully, but these errors were encountered: