[R] knitr error when using knit2wp: "need a login and password"

Abraham Mathew mathewanalytics at gmail.com
Mon Aug 31 02:07:16 CEST 2015


I'm using the knitr package to post an .Rmd file to wordpress. First time
I'm working this type of project and am having the following error/issue.
Can anyone help identify the issue. Have done a number of Google searches
but haven't seem similar issues. Also tried to use the newPost function for
this task but that was unfruitful.

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 factors2: In Ops.factor(1, obs) : '-' not meaningful
for factors3: In Ops.factor(1, y) : '-' not meaningful for factors





-- 


*Abraham MathewData Ninja and Statistical Modeler*



*Minneapolis, MN720-648-0108 at abmathewksAnalytics_Blog
<https://mathewanalytics.wordpress.com/>*

	[[alternative HTML version deleted]]



More information about the R-help mailing list