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

is_golem #836

Closed
ColinFay opened this issue Feb 17, 2022 · 2 comments · Fixed by #1003
Closed

is_golem #836

ColinFay opened this issue Feb 17, 2022 · 2 comments · Fixed by #1003
Labels
timed-1h Worktime 1h
Milestone

Comments

@ColinFay
Copy link
Member

When extending golem, it might be worth having something that can do golem::is_golem() so that we are sure the functions are used in a golem-based project.

@ColinFay ColinFay added this to the Version 0.5.0 milestone Dec 15, 2022
@ColinFay
Copy link
Member Author

is_golem <- function(path = ".") {
  all(
    c(
      "DESCRIPTION",
      "dev/01_start.R",
      "dev/02_dev.R",
      "dev/03_deploy.R",
      "dev/run_dev.R",
      "inst/golem-config.yml",
      "NAMESPACE",
      "R/app_config.R",
      "R/app_server.R",
      "R/app_ui.R",
      "R/run_app.R"
    ) %in%  list.files(path, recursive = TRUE)
  )
 }

@ColinFay ColinFay added the timed-1h Worktime 1h label Mar 9, 2023
ColinFay added a commit that referenced this issue Mar 14, 2023
This can be used to check
before running a module/project template

close issue #836
ColinFay added a commit that referenced this issue Mar 15, 2023
This can be used to check
before running a module/project template

close issue #836
@ColinFay
Copy link
Member Author

merged in #1003

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

Successfully merging a pull request may close this issue.

1 participant