找不到对象"C_stri_join"-在Rstudio中使用Knitr [英] object 'C_stri_join' not found - Using knitr in Rstudio
本文介绍了找不到对象"C_stri_join"-在Rstudio中使用Knitr的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Rstudio中使用编织按钮时,出现错误object 'C_stri_join' not found
.
When using the knit button in Rstudio I get an error object 'C_stri_join' not found
.
这里是一个例子:
---
title: "Sample Document"
output:
html_document:
toc: true
theme: united
---
<!--
%\VignetteEngine{knitr::knitr}
%\VignetteIndexEntry{Basic test}
-->
Here we go
```{r}
x <- 1
str(x)
```
错误如下:
Error in stri_c(..., sep = sep, collapse = collapse, ignore_null = TRUE) :
object 'C_stri_join' not found
Calls: suppressPackageStartupMessages ... evaluate_call -> handle_output -> <Anonymous> -> str_c -> stri_c
这是我的R软件包最近更新之后的结果:
This comes after a recent update of my R packages:
> sessionInfo()
R version 3.2.2 (2015-08-14)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=English_United Kingdom.1252
[2] LC_CTYPE=English_United Kingdom.1252
[3] LC_MONETARY=English_United Kingdom.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United Kingdom.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] htmltools_0.2.6 tools_3.2.2 yaml_2.1.13 rmarkdown_0.8.1
[5] digest_0.6.8
错误似乎源于对R代码块中str
的调用,因为以下工作无误:
The error seems to originate from the call to str
in the R code chunk since the following works without error:
---
title: "Sample Document"
output:
html_document:
toc: true
theme: united
---
<!--
%\VignetteEngine{knitr::knitr}
%\VignetteIndexEntry{Basic test}
-->
Here we go
```{r}
x <- 1
# str(x)
```
这与此问题相似,但给出的详细信息很少在那里.
This is similar to this issue but little details are given there.
推荐答案
此问题仅通过重新安装stringi软件包即可解决.
This was fixed by simply re-installing the stringi package.
这篇关于找不到对象"C_stri_join"-在Rstudio中使用Knitr的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文