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

Fix 110 add rscignore #1049

Closed

Conversation

ilyaZar
Copy link
Contributor

@ilyaZar ilyaZar commented May 27, 2023

Fix #110

Done:

  • use rsconnect version 0.8.25, or skip creation of file
  • excludes, besides what is mentioned in the issue: .here, CODE_OF_CONDUCT.md, vignettes, LICENSE.md, LICENCE.md
  • adds entry to .Rbuildignore
  • prints some user information along the way

Note keeping:

  • add basic test for add_rscignore_file()
  • add documentation for add_rscignore_file()
  • refactor tests in tests-add_deploy_helpers(): add_rstudioconnect_file, add_shinyappsio_file, add_shinyserver_file have a call to add_rscignore_file() so their output is not properly tested anymore (they pass silently though)
  • adjust implementation to whatever happens here: Support full .gitignore syntax in .rcsignore rstudio/rsconnect#774
  • seeing the previous issue, maybe add a func that helps with adding new entries to .rscignore (e.g. add_entry_to_rscignore())
    • globbing/standard use ala .gitigore and .Rbuildignore in .rscignore not supported yet
    • also man/, dev/ is not allowed atm. but man, dev is possible, see above issue (one could take care of that in a separate add_entry_to_rscignore() e.g.)

- add_rscignore_file() generates .rscignore at golem top level
- call in add_rstudio_files() is used in RStudio connect, shiny
server and shinyapps io
- can be called directly

Refs: ThinkR-open#110
@ilyaZar ilyaZar closed this May 27, 2023
@ilyaZar ilyaZar reopened this May 27, 2023
@ilyaZar ilyaZar changed the base branch from master to dev May 27, 2023 20:52
@ilyaZar ilyaZar force-pushed the fix-110_add_rscignore branch 3 times, most recently from 377b9ab to 31b7567 Compare May 27, 2023 22:16
- fix typos in two tests

- update docs to pass CI

- use different cat_green_tick() for app.R and .rscignore as they are called right after each other

- move doc for rscignore down so man-page displays add_rstudioconnect_file at the top
@ilyaZar ilyaZar force-pushed the fix-110_add_rscignore branch from 31b7567 to aa930b2 Compare May 27, 2023 22:25
@ColinFay
Copy link
Member

I'll test this in action on our Connect and let you know :)

@ColinFay ColinFay changed the base branch from dev to 1049-cherry-picked February 28, 2024 17:06
@ColinFay
Copy link
Member

@ColinFay ColinFay closed this Feb 28, 2024
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

Successfully merging this pull request may close these issues.

Add a mechanism to help not add all files in rsconnect deployment
3 participants