0

I am creating a Shiny app using the golem framework. I am at the last part where I am testing to see whether the app can be installed like a package by running remotes::install_local().

However, I am running into the following error:

remotes::install_local()
Error: Failed to install 'XXXX' from local:
  HTTP error 404.
  Not Found

  Did you spell the repo owner (`XXXX`) and repo name (`XXXX`) correctly?
  - If spelling is correct, check that you have the required permissions to access the repo.

Here are the files that are in the project folder - I think that the structure is correct?:

enter image description here

I'm a bit confused, if I am trying to install locally, why is it requiring the repo owner and name? (It's also listing the incorrect repo too).

Thanks

Dieu94
  • 371
  • 1
  • 11
  • What does your DESCRIPTION file look like? Where is the `XXXX` name coming from? Do you reference your own package as a dependency in the DESCRIPTION file? – MrFlick Feb 06 '23 at 14:40
  • Posit Community [crosspost](https://community.rstudio.com/t/unable-to-install-local-with-r-shiny-golem-app/159373). – ismirsehregal Feb 06 '23 at 15:21

1 Answers1

0

I needed to assign a personal access token using credentials::set_github_pat() before running install_github('owner/repo').

Dieu94
  • 371
  • 1
  • 11