相关疑难解决方法(0)

knit2wp错误.无法识别用户名或密码

我正在使用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: …
Run Code Online (Sandbox Code Playgroud)

r

7
推荐指数
1
解决办法
785
查看次数

标签 统计

r ×1