Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in get(name, envir = asNamespace(pkg), inherits = FALSE) : object 'char_to_b64' not found #19

Open
planetscape opened this issue Aug 12, 2018 · 5 comments

Comments

@planetscape
Copy link

planetscape commented Aug 12, 2018

Hello. Just beginning working with rtweet and tweetbotornot.

Attempting to follow the synopsis code:

> library(tweetbotornot)
> users <- c("realdonaldtrump", "netflix_bot",
+            "kearneymw", "dataandme", "hadleywickham",
+            "ma_salmon", "juliasilge", "tidyversetweets", 
+            "American__Voter", "mothgenerator", "hrbrmstr")
> users
 [1] "realdonaldtrump" "netflix_bot"     "kearneymw"      
 [4] "dataandme"       "hadleywickham"   "ma_salmon"      
 [7] "juliasilge"      "tidyversetweets" "American__Voter"
[10] "mothgenerator"   "hrbrmstr"       
> data <- botornot(users)
Error in get(name, envir = asNamespace(pkg), inherits = FALSE) : 
  object 'char_to_b64' not found
> 

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

@planetscape
Copy link
Author

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  
> 

@brainprint
Copy link

It also worked for me

@hamza121star
Copy link

Anyone with a better solution?
Are you trying to install an older version to get the function working?

@planetscape
Copy link
Author

Yes, that is what I did above, in my Aug 13 comment.

@mkearney
Copy link
Owner

mkearney commented Oct 4, 2018

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")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants