【发布时间】:2015-11-24 17:32:15
【问题描述】:
我正在使用 knitr 包将 .Rmd 文件发布到 wordpress。我第一次从事这种类型的项目并且遇到以下错误/问题。任何人都可以帮助确定问题。已经做了一些谷歌搜索,但似乎没有类似的问题。还尝试使用 newPost 函数完成此任务,但没有结果。
if (!require('RWordPress'))
install.packages('RWordPress', repos = 'http://www.omegahat.org/R', type = 'source')
library(RWordPress)
options(WordPressLogin = c(username = "*****"),
WordPressURL = "https://mathewanalytics.com/xmlrpc.php")
library(knitr)
knit2wp("Logistic_Regression_Document.Rmd",
title = "Evaluation Logistic Regression in R",
shortcode=TRUE, publish=FALSE )
List of 4
$ results: chr "hide"
$ message: logi FALSE
$ warning: logi FALSE
$ eval : logi FALSE
|.................................................................| 100%
ordinary text without R code
output file: Logistic_Regression_Document.md
Error in getOption("WordpressLogin", stop("need a login and password")) :
need a login and password
In addition: Warning messages:
1: In Ops.factor(1, obs) : '-' not meaningful for factors
2: In Ops.factor(1, obs) : '-' not meaningful for factors
3: In Ops.factor(1, y) : '-' not meaningful for factors
【问题讨论】:
标签: r