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

spacy_install() - git needed? #245

Open
seb-29 opened this issue Dec 26, 2023 · 4 comments
Open

spacy_install() - git needed? #245

seb-29 opened this issue Dec 26, 2023 · 4 comments

Comments

@seb-29
Copy link

seb-29 commented Dec 26, 2023

I just downloaded spacyr 1.3.0 from CRAN. When running install_spacy(), I received the following error message:

Error in pyenv_bootstrap_windows() :
Please install git and ensure it is on your PATH

What exactly is git? Is it also required when running the manual installation as described on the spacyr Github page?

@kbenoit
Copy link
Collaborator

kbenoit commented Dec 30, 2023

We should add that to the instruction page. But it's easy to install git, see https://github.com/git-guides/install-git.

@JBGruber
Copy link
Collaborator

JBGruber commented Feb 2, 2024

For some reason I remembered there were more instructions if that error comes up. Maybe we could do something like this:

if (identical(Sys.which("git"), "") && is_windows())
  stop("Please install git and ensure it is on your PATH. See ",
       "<https://happygitwithr.com/install-git> for more information")

It's only an issue on Windows (is_windows() alread exists) and the linked chapter is quite good, if I remember correctly. I've also seen other packages link to it, e.g., usethis

@seb-29
Copy link
Author

seb-29 commented Feb 10, 2024

Thank you both! @JBGruber: Do I need to setup Git with username & email address (chapter 7 / happygitwithr) if I only need Git to use spacyr in RStudio?

@JBGruber
Copy link
Collaborator

My understanding is that git is only used to download Python. So I don't think you need to log into, or even have an account!

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

3 participants