Open planetscape opened 6 years ago
As a temp work-around, anyway, this works:
> devtools::install_github("mkearney/tweetbotornot", ref = "a7c5ae605a0a0547298150ee1f4d3397ff106bf3")
Downloading GitHub repo mkearney/tweetbotornot@a7c5ae605a0a0547298150ee1f4d3397ff106bf3
from URL https://api.github.com/repos/mkearney/tweetbotornot/zipball/a7c5ae605a0a0547298150ee1f4d3397ff106bf3
Installing tweetbotornot
"C:/PROGRA~1/R/R-35~1.1/bin/x64/R" --no-site-file \
--no-environ --no-save --no-restore --quiet CMD INSTALL \
"C:/Users/nancy_000/AppData/Local/Temp/RtmpIrbCmM/devtools2124157865cb/mkearney-tweetbotornot-a7c5ae6" \
--library="C:/Users/nancy_000/Documents/R/win-library/3.5" \
--install-tests
* installing *source* package 'tweetbotornot' ...
** R
** tests
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
converting help for package 'tweetbotornot'
finding HTML links ... done
botornot html
classify_data html
*** copying figures
** building package indices
** testing if installed package can be loaded
*** arch - i386
*** arch - x64
* DONE (tweetbotornot)
In R CMD INSTALL
Reloading installed tweetbotornot
> library(tweetbotornot)
> users
[1] "realdonaldtrump" "netflix_bot" "kearneymw"
[4] "dataandme" "hadleywickham" "ma_salmon"
[7] "juliasilge" "tidyversetweets" "American__Voter"
[10] "mothgenerator" "hrbrmstr"
> data <- botornot(users)
> data[order(data$prob_bot), ]
# A tibble: 11 x 3
screen_name user_id prob_bot
<chr> <chr> <dbl>
1 hadleywickham 69133574 0.00436
2 realDonaldTrump 25073877 0.00850
3 kearneymw 2973406683 0.0278
4 ma_salmon 2865404679 0.0546
5 juliasilge 13074042 0.111
6 hrbrmstr 5685812 0.127
7 dataandme 3230388598 0.210
8 netflix_bot 1203840834 0.978
9 tidyversetweets 935569091678691328 0.998
10 mothgenerator 3277928935 0.998
11 American__Voter 829792389925597184 1.000
>
It also worked for me
Anyone with a better solution? Are you trying to install an older version to get the function working?
Yes, that is what I did above, in my Aug 13 comment.
Sorry, yall. I've been slowly overhauling tweetbotornot with the help of top improvements to rtweet and textfeatures.
This particular error is due to changes in {{tweetbotornot}} and {{textfeatures}}, but I'd recommend installing newest versions of each:
## install remotes pkg if not already
if (!requireNamespace("remotes")) {
install.packages("remotes")
}
## install rtweet
remotes::install_github("mkearney/rtweet")
## install textfeatures
remotes::install_github("mkearney/textfeatures")
## install tweetbotornot
remotes::install_github("mkearney/tweetbotornot")
Hello. Just beginning working with rtweet and tweetbotornot.
Attempting to follow the synopsis code:
Gives me an error.
Any suggestions?
TIA!
Windows: 8.1 R: x64 3.5.1 (2018-07-02) -- "Feather Spray" R Studio: Version 1.1.456