有人可以帮我解决这个错误吗?
当我尝试使用外部乳胶var gulp = require("gulp"),
rimraf = require("rimraf"),
concat = require("gulp-concat"),
cssmin = require("gulp-cssmin"),
uglify = require("gulp-uglify"),
sass = require('gulp-sass');
var paths = {
webroot: "./wwwroot/"
};
paths.sass = paths.webroot + "lib/foundation-apps/scss/**/*.scss";
gulp.task('sass', function () {
gulp.src(paths.sass)
.pipe(sass())
.pipe(gulp.dest(paths.webroot + '/css/'));
});
文件
.Rmd
文档时,我遇到了下一个错误
.bib
,错误信息为:
---
title: "Untitled"
output:
pdf_document:
fig_caption: yes
bibliography: biblio.bib
lang: spanish
---
使用此会话信息:
|.................................................................| 100%
label: unnamed-chunk-3 (with options)
List of 2
$ echo : logi FALSE
$ results: chr "asis"
/usr/bin/pandoc bib.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output bib.pdf --filter /usr/bin/pandoc-citeproc --template /home/juanchi/R/x86_64-pc-linux-gnu-library/3.2/rmarkdown/rmd/latex/default.tex --highlight-style tango --latex-engine pdflatex --variable 'geometry:margin=1in' --bibliography biblio.bib
output file: bib.knit.md
pandoc-citeproc: could not find locale data for spanish
pandoc: Error running filter /usr/bin/pandoc-citeproc
Filter returned error status 1
Error: pandoc document conversion failed with error 83
如果我这样做是为了分离它的工作原理:
> sessionInfo()
R version 3.2.2 (2015-08-14)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 15.10
locale:
[1] LC_CTYPE=pt_BR.UTF-8 LC_NUMERIC=C LC_TIME=pt_BR.UTF-8
[4] LC_COLLATE=es_ES.UTF-8 LC_MONETARY=pt_BR.UTF-8 LC_MESSAGES=es_ES.UTF-8
[7] LC_PAPER=pt_BR.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=pt_BR.UTF-8 LC_IDENTIFICATION=C
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.6.2.2
[5] knitr_1.10.5 digest_0.6.8
或
---
title: "Untitled"
output:
pdf_document:
fig_caption: yes
bibliography: biblio.bib
---
当我尝试更改yaml时
---
title: "Untitled"
output:
pdf_document:
fig_caption: yes
lang: spanish
---
给出了这个错误:
lang: es-ES
答案 0 :(得分:4)
您的 rmarkdown 版本似乎太旧了。我认为你需要update.packages(ask = FALSE)
。最新版本的 rmarkdown 可以在您使用pandoc-citeproc
的{{1}}参数时使用citation_package
来处理参考书目,例如
pdf_document