RMHogervorst / badgecreatr

Quickly place relevant badges at the top of your readme, stop copy pasting, start on your project
http://rmhogervorst.nl/badgecreatr
61 stars 22 forks source link

Error in search_git(location): trying to get slot "name" from an object (class "git_branch") that is not an S4 object #56

Open SimonDedman opened 3 years ago

SimonDedman commented 3 years ago

Hi Roel,

I'm just starting to use badgecreatr and immediately hit a problem. I've got my package open in RStudio, and ran what I believe to be the default options:

badgeplacer(location = ".", status = "active", githubaccount = "SimonDedman", githubrepo = "gbm.auto", name = "README.Rmd")

Which results in:

Error in search_git(location): trying to get slot "name" from an object (class "git_branch") that is not an S4 object

It seems like search_git isn't found?

library(badgecreatr)
search_git(location = ".")

Error in search_git(location = "."): could not find function "search_git"

Thanks in advance for any tips!

Simon

RMHogervorst commented 3 years ago

Hi Simon, I've not touched this package in a while. There is a similar issue open. I'm thinking it's the git package. Frankly I'm considering archiving this package, most of the badges can be created with usethis.