tests/testthat/_snaps/get_package_structure.md

get_package_structure allows classical package

Code
  pkg_structure
Output
  $keep
  $keep$path
  [1] "keep"

  $keep$state
  [1] "🍏 active"

  $keep$R
  $keep$R$`R/my_extra_fun.R`
  [1] "🙈 extra_fun"


  $keep$tests
  list()

  $keep$vignettes
  list()
Code
  draw_package_structure(pkg_structure)
Output

  - keep
    - path
        + keep
    - state
        + 🍏 active
    - R
      - R/my_extra_fun.R
        + 🙈 extra_fun
    - tests
    - vignettes

get_package_structure allows fusen structure

Code
  pkg_structure
Output
  $flat_full.Rmd
  $flat_full.Rmd$flat_title
  [1] "flat_full.Rmd for working package"

  $flat_full.Rmd$path
  [1] "dev/flat_full.Rmd"

  $flat_full.Rmd$state
  [1] "🍏 active"

  $flat_full.Rmd$R
  $flat_full.Rmd$R$`R/my_median.R`
  [1] "👀 my_median"

  $flat_full.Rmd$R$`R/my_other_median.R`
  [1] "👀 my_other_median" "🙈 sub_median"


  $flat_full.Rmd$tests
  [1] "tests/testthat/test-my_median.R"       "tests/testthat/test-my_other_median.R"

  $flat_full.Rmd$vignettes
  [1] "vignettes/get-started.Rmd"


  $keep
  $keep$path
  [1] "keep"

  $keep$state
  [1] "🍏 active"

  $keep$R
  $keep$R$`R/my_extra_fun.R`
  [1] "🙈 extra_fun"


  $keep$tests
  list()

  $keep$vignettes
  list()
Code
  draw_package_structure(pkg_structure)
Output

  - flat_full.Rmd
    - flat_title
        + flat_full.Rmd for working package
    - path
        + dev/flat_full.Rmd
    - state
        + 🍏 active
    - R
      - R/my_median.R
        + 👀 my_median
      - R/my_other_median.R
        + 👀 my_other_median
        + 🙈 sub_median
    - tests
        + tests/testthat/test-my_median.R
        + tests/testthat/test-my_other_median.R
    - vignettes
        + vignettes/get-started.Rmd
  - keep
    - path
        + keep
    - state
        + 🍏 active
    - R
      - R/my_extra_fun.R
        + 🙈 extra_fun
    - tests
    - vignettes


Try the fusen package in your browser

Any scripts or data that you put into this service are public.

fusen documentation built on May 29, 2024, 6:42 a.m.