[prev in list] [next in list] [prev in thread] [next in thread] 

List:       r-help
Subject:    [R] knitr error when using knit2wp: "need a login and password"
From:       Abraham Mathew <mathewanalytics () gmail ! com>
Date:       2015-08-31 0:07:16
Message-ID: CABbYstd26tCkL3bYR7poF16Av+-7iWCgZtiO-GwQ_a0vve3gOQ () mail ! gmail ! com
[Download RAW message or body]

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@abmathewksAnalytics_Blog
<https://mathewanalytics.wordpress.com/>*

	[[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic