Sto usando il pacchetto knitr per inviare un file .Rmd a wordpress. La prima volta sto lavorando a questo tipo di progetto e sto avendo il seguente errore/problema. Qualcuno può aiutare a identificare il problema. Hanno fatto un certo numero di ricerche su Google ma non sembrano problemi simili. Ho anche provato a usare la funzione newPost per questo compito, ma non ha funzionato.errore knit2wp. Non riconosce nome utente o password
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
Wow, questo è super fastidioso perché è sbagliato in tutti i post del blog. – jebyrnes