Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译的错误 #24

Closed
bubifengyun opened this issue Aug 25, 2017 · 6 comments
Closed

编译的错误 #24

bubifengyun opened this issue Aug 25, 2017 · 6 comments

Comments

@bubifengyun
Copy link

刚接触 bookdown,找到了这个模板,按着 bookdown 建议的步骤,除了 pandoc 版本比较落后外,其他都更新到最新了。出现如下这个问题,可以哪位遇到过。谢谢。

sessionInfo()
R version 3.4.1 (2017-06-30)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Deepin 15

Matrix products: default
BLAS: /usr/lib/openblas-base/libblas.so.3
LAPACK: /usr/lib/libopenblasp-r0.2.19.so

locale:
 [1] LC_CTYPE=zh_CN.UTF-8       LC_NUMERIC=C               LC_TIME=zh_CN.UTF-8       
 [4] LC_COLLATE=zh_CN.UTF-8     LC_MONETARY=zh_CN.UTF-8    LC_MESSAGES=zh_CN.UTF-8   
 [7] LC_PAPER=zh_CN.UTF-8       LC_NAME=C                  LC_ADDRESS=C              
[10] LC_TELEPHONE=C             LC_MEASUREMENT=zh_CN.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
 [1] compiler_3.4.1  backports_1.1.0 bookdown_0.5    magrittr_1.5    rprojroot_1.2  
 [6] htmltools_0.3.6 tools_3.4.1     yaml_2.1.14     Rcpp_0.12.12    stringi_1.1.5  
[11] rmarkdown_1.6   knitr_1.17      stringr_1.2.0   digest_0.6.12   evaluate_0.10.1

弹出的错误如下,点击 build book(bookdown::pdf_book)。

Quitting from lines 933-937 (r-ninja.Rmd) 
Error in library(rmini) : there is no package called 'rmini'
Calls: <Anonymous> ... withCallingHandlers -> withVisible -> eval -> eval -> library
此外: Warning message:
In 1:3 + 1:2 : 长的对象长度不是短的对象长度的整倍数
Please delete r-ninja.Rmd after you finish debugging the error.
停止执行
@dongzhuoer
Copy link
Contributor

说的很清楚啊,让你安装rmini这个package

@dongzhuoer
Copy link
Contributor

@bubifengyun
Copy link
Author

谢谢啊,我知道,但是根本无法安装这个包,你可以试试。

@bubifengyun
Copy link
Author

我先安装了 Rd2roxygen

install.packages('Rd2roxygen')

接着打开这个 project 目录,使用如下命令,

library(Rd2roxygen)
rab('rmini')

但是弹出

Error in setwd(dir) : 无法改变工作目录

发现太菜了。我再查查如何解决这个问题。非常感谢。

@yihui
Copy link
Owner

yihui commented Aug 25, 2017

devtools::install_github('yihui/rmini')

@bubifengyun
Copy link
Author

非常感谢,解决啦。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants