Skip to content

reuseme 0.1.0

Latest

Choose a tag to compare

@olivroy olivroy released this 03 Jun 14:51

Breaking change

  • na_if2() gains ... to force you to specify values or expr explicitly.

  • To facilitate piping, path / proj is now the first argument of proj_outline(), file_outline(), and dir_outline().

  • If you previously relied on specifying pattern without naming it, you will have
    to get used to the opposite. Naming pattern, but not path.

  • Removed work_only argument from file_outline(), use pattern = "WORK" to
    achieve the same result.

  • In proj_outline(), proj has been renamed path, but still accepts a project name,
    that will passed on to proj_list()

  • Removed dir_common from file_outline() (#35)

  • file_outline() result is now a simpler data frame. The cli links are now created in the print method. (which makes more sense for truncation)

  • More safety around rstudioapi. (make open_rs_doc() work in Positron.)

  • use_todo("global::todo") no longer works out of the box. You need to set options(reuseme.global_todo = fs::path("Documents")) explicitly (in .Rprofile) for example to make sure
    reuseme can write in a directory.

  • Added file_move_temp_auto() to automatically move a Downloads file to your project directory.

  • Added active_rs_doc_move('dir') as a shortcut for rename_files2(fs::path('dir', fs::path_file(active_rs_doc()), active_rs_doc()).

  • Added file_rename_auto() as a shortcut for file.rename(fs::path(fs::path_dir(old_file), new_file, ext = fs::path_ext(old_file)), old_file)

  • Added file_move_dir_auto() as a shortcut for file.rename(fs::path(new_dir, fs::path_file(old_file)), old_file)

  • Added file_copy_auto() as a shortcut for file.copy(fs::path(new_dir), fs::path_file(old_file), old_file)

Fixes

  • rename_files2() now looks in .Rbuildignore to see if some files should be replaced.

  • Improved regex in link_gh_issue().

  • file_outline() now recognize describe() test calls.
    (probably many false positive for now) (#31)

  • Outline elements present more than four times in a file will not be printed as they are considered placeholders. (like generic test name)

  • proj_outline() now detects knitr notebooks that use the default options. Internally, the file is transformed into a md file by stripping roxygen comments, and is processed as such. (#30)

  • proj_outline() no longer shows complete_todo() links for items in non-interactive sessions. complete_todo() links are now only shown when calling file_outline() on the active file.

  • proj_list() / proj_switch() no longer opens a nested project if looking for "pkgdown", "testthat", etc.

  • active_rs_doc_nav() is a new function to navigate to files pane location.

  • active_rs_doc_copy() now accepts copying md and qmd files too and no longer allows renaming Rprofile.

  • proj_file() is better.

  • file_outline() has more support for deeper file sections.

  • Local GitHub issues show better in outline.

  • file_outline() detects better plot titles and section titles.

  • Package versions in NEWS.md are now normalized to yield better results.

  • active_rs_doc() returns the relative path if in RStudio project.

  • summarise_with_total() works with more than 1 group to get the total summary.

  • check_referenced_files() now checks _quarto.yml.

  • check_referenced_files() now has less false positives.