- Renamed the package to fritools2.
- Add rename_package().
- We do not check on the number of columns anymore since
utils::read.table()seems do get the columns right anyways.
However it manages.
- find_files(): changed default to argument- patternfrom- ".*\\.[RrSs]$|.*\\.[RrSs]nw$"to- NULL.
- Hardened find_files()against failingpatterns on windows.
- is_running_on_fvafrcu_machines()now has value- bwifor argument- type. This is- TRUEfor the nfi notebook only.
- Add function grep_file().
- Changed argument order for find_files()fromnames, path, patterntopath, pattern, namesfor convenience.
- Added relative_difference(), a convenience wrapper tobase::all.equal()
- Added column_sums(), a convenience wrapper tobase::colSums().
- split_code_file()now works with files with hidden
functions (i.e. function whose names start with a period).
- Under unix, clipboard_path()now prints the path asfile.pathto the console.
- Added count_groups(), a specialized wrapper tostats::aggregate(), gives results similar todplyr::count().
- view()now normalizes the path first in order to deal
with blanks in the path.
- Added example to vignette.
- Linted exhaustively.
- Added delete_trailing_blank_lines().
- view()now uses- base::shQuote()under
Unix.
- Made vim()warn instead of throw when called
non-interactively.
- touch()now digests paths to several files. Replaced
argument- pathby- ...but the ui did not
change.
- vim()now digests paths to several files. Replaced
argument- fileby- ...but the ui did not
change.
- file_save()now digests paths to several files.
Replaced argument- xby- ...but the ui did not
change.
- file_copy()now digests paths to several files.
- Added delete_trailing_whitespace().
- Added develop_test().
- Added wipe_tempdir().
- Added ’clipboard_path()` to help me with paths under Windows.
- view()now tries to use- programonly if it
is installed.
- is_files_current()now warns, if any file is newer than- Sys.time().
- Added view()as an unix equivalent toshell.exec().
- Added vim()as a wrapper tofile.edit().
- Added file_copy()to force copying while backing
up.
- Added file_save()to create backup copies for
files.
- Added appropriate error messages to fromto()and
allowing for NA in its argumentsfromandtoto read from first item and to last item.
- Added function round_half_away_from_zero()that
implements commercial rounding.
- Added function str2num()to convert string
representations of (potentially German) numbers.
- Added a global option to pass .GlobalEnvas default
environment towipe_clean().
- Added calls to Sys.sleep(1)to unit testing to ensure
that the files’ time stamps are correct.
Major changes
- Added function check_ascii_file()to check for number
of lines and fields of an ascii file. This is used to now check whether
files read viaread_csv()are read completely. Otherwise an
error is thrown.bulk_read_csv()now knows an argumentstop_on_errorto stop reading if one of the files in the
bulk fails to be read.
Minor changes
- set_path()now adds reading and writing times to the
path. So we can compare reading times with modification times on
disk.
- Added argument forcetoget_path()to
enable unit testing.
- Added argument differences_onlyto functioncompare_vectors().
- Added function is_path.
- Added function fromto.
- Added function find_missing_see_alsoandfind_missing_family.
- Function set_pathnow sets a path attribute which
itself has a file time modification date attribute.
- Added argument selectto functionfind_files(). This allows us to select files by their
attributes, like file size.
- Changed argument default for recursiveforfind_files()fromTRUEtoFALSE.
- Added functions is_files_current()andis_difftime_less().
- Added function is_valid_primary_key()fromwehamr.
- Function convert_umlauts_to_ascii()now convertsrownames, too.
- Fixed function convert_umlauts_to_tex().
- Fixed unit test that threw an error when running unit test on CRAN
M1mac.
- Added functions to read an write (bulks of) CSV files.
- Added csv2csv(), which converts German to standard
CSV.
- Added convert_umlauts_to_ascii().
- Added file_last_modified().
- Added is_cran(), a copy offda::CRAN().
- touch()now creates directories as needed.
- get_path()and- set_path()now throw
errors, if a path to get is not set or if a path to set is already set
and argument- overwriteis not- TRUE.
Major changes
- search_files()now throws an error if no matches are
found.
Minor changes
- Added function search_rows().
- Added function is_success().
- Added function convert_umlauts_to_tex().
- Added function split_code_file().
- Added function weighted_variance().
- Added function tapply()to fix the base version which
will not digestdata.frames as input.
- Extended is_running_on_fvafrcu_machines()to catch a
new machine.
- Added function with_dir()as this is often the only
function I import from packagewithrmakingwithra dependency.
- Added function get_boolean_envvar(),get_run_r_tests()is now a wrapper to that.
- Added function is_of_length_zero().
- Added function get_unique_string().
- Added function is_r_cmd_check().
- Added function run_r_tests_for_known_hosts().
- Added functions get_path()andset_path().
- The matrixreturned bycompare_vectorsnow
has named rows.
- Skipping tests for search_files()if R has not at least
version 4.0.0.
- Added function r_cmd_install()as a quick alternative
todevtools::install().devtoolscallingcallr, callingprocessx::runseemed too
bloated for such a simple task.
- Added function compare_vectors()which returns a
side-by-side comparison of two vectors.
- Updated test_helper to recognize machines running at the Forest
Research Institute of the state of Baden-Wuerttemberg.
- Fixed buggy regular expression in
is_running_on_gitlab_com()
- Added get_options,set_options,is_force;call_conditionally,call_safe;is_installed,is_r_package_installed;is_false,is_null_or_true;search_files,find_files,summary.filesearchandstrip_off_attributesfrom packagepackager.
- Got the compilation of utilities from
- rasciidoc/R/utils.R: *
- packager/R/is_version_sufficient.R: *
- rasciidoc/R/is_version_sufficient.R: *
- document/R/test_helpers.R: *
- fakemake/R/tools.R: *
- cleanr/R/utils.R: *
- bundeswaldinventur/R/utils.R: golden_ratio()
- cuutils/R/utils.R: *
- cuutils/R/?.R: ?
- packager/R/package_version.R