Learn R Programming


fritools

Introduction

After installation, please read the help page:

help("fritools-package", package = "fritools")
#> Utilities for the Forest Research Institute of the State
#> Baden-Wuerttemberg
#> 
#> Description:
#> 
#>      Miscellaneous utilities, tools and helper functions.
#> 
#> Details:
#> 
#>      You will find the details in
#>      'vignette("Not_an_Introduction_to_fritools", package =
#>      "fritools")'.
#> 
#> Author(s):
#> 
#>      *Maintainer*: Andreas Dominik Cullmann
#>      <mailto:fvafrcu@mailbox.org>
#> 
#> See Also:
#> 
#>      Useful links:
#> 
#>         • <https://gitlab.com/fvafrcu/fritools>

Installation

You can install fritools from gitlab via:

if (! require("remotes")) install.packages("remotes")
remotes::install_gitlab("fvafrcu/fritools")

Copy Link

Version

Install

install.packages('fritools')

Monthly Downloads

837

Version

4.6.0

License

BSD_2_clause + file LICENSE

Maintainer

Andreas Dominik Cullmann

Last Published

February 18th, 2026

Functions in fritools (4.6.0)

convert_umlauts_to_tex

Tex Codes for German Umlauts
convert_umlauts_to_utf8

Convert German Umlauts to a More or Less Suitable `utf8` Representation
call_safe

Call a Function Given an External Dependency on Non-Windows Systems
delete_trailing_whitespace

Remove Trailing Whitespace From Files
column_sums

Sum up the Numeric Columns of a Data Frame
develop_test

Develop Unit Testing for a Code File
clipboard_path

Copy a Path from Clipboard to 'R'
compare_vectors

Compare Two Vectors
convert_umlauts_to_ascii

Convert German Umlauts to a More or Less Suitable `ascii` Representation
escape_non_ascii

Escape non-ASCII Characters
file_copy

Force Copying a File While Backing it up
file_modified_last

Get the File Modified Last
file_save

Create a Copies of Files
delete_trailing_blank_lines

Remove Trailing Blank Lines From Files
csv2csv

Convert a German Comma Separated File into a Comma Separated File
file_string

Substitute All Blanks and Punctuations in a String with an Underscore
find_files

Find Files on Disk
get_lines_between_tags

Cut Code Chunks From a File
get_german_umlauts

Get German Umlauts
get_script_path

Get the Path of the 'R' Code File
get_session_string

Get a Session String
get_options

Get Options For Packages
get_package_version

Query Installed Package Version
get_unique_string

Create a Fairly Unique String
is_files_current

Check Whether Files are Current
fritools-package

Utilities for the Forest Research Institute of the State Baden-Wuerttemberg
is_force

Opt-out Via Option
fromto

Extract All Items of a Vector Between Two Patterns
get_run_r_tests

Get System Variable RUN_R_TESTS
get_script_name

Get the Name of the 'R' Code File or set it to default
is_installed

Is an External Program Installed?
is_not_false

get_mtime

Get the mtime Attribute from an Object
grep_file

Grep a Pattern from Files
index_groups

Determine Indices and Sizes of Subsets
get_boolean_envvar

Get a Boolean Environment Variable
is_scalar_convertible2numeric

Check Whether a Scalar is Convertible to Numeric
is_cran

Is 'R' Running on CRAN?
is_batch

Is 'R' Run in Batch Mode (via 'R CMD BATCH' or 'Rscript')?
is_success

Does the Return Value of a Command Signal Success?
get_r_cmd_batch_script_path

Get the Path of the 'R' Code File in Case of an 'R CMD BATCH' Run
get_rscript_script_path

Get the Path of the 'R' Code File in Case of an 'Rscript' Run
golden_ratio

Calculate the Golden Ratio
is_running_on_gitlab_com

is_false

Provide isFALSE for 'R' < 3.5.0
is_r_package_installed

Is an 'R' Package Installed?
is_path

Check Whether an Object Contains a Valid File System Path
is_scalar

Check Whether an R Object is Scalar
is_version_sufficient

Is a Version Requirement Met?
load_internal_functions

Load a Package's Internals
is_difftime_less

Check Whether Two Times Differ Less Than A Given Value
is_running_on_fvafrcu_machines

Is the Machine Running the Current 'R' Process Owned by FVAFRCU?
is_null_or_true

is_valid_primary_key

Is a Key a Valid Potential Primary Key for a data.frame?
is_true

Convert a logical Array to a Binary Boolean Array
rownames2col

Add a Column Containing the Row Names to a Data Frame
run_r_tests_for_known_hosts

Force Testing on Known Hosts
rename_package

Change This Package's Name
memory_hogs

Find Memory Hogs
round_half_away_from_zero

Round Half Away From Zero
is_of_length_zero

Is an Object of Length Zero?
relative_difference

Compute Relative Differences Between the Values of Two Vectors
pause

Pause
r_cmd_install

Install a Tarball or a Directory
search_files

Search Files for a Pattern
runsed

Replace a Pattern in Files with a Replacement String
is_windows

Is the System Running a Windows Machine?
is_r_cmd_check

Is the Current R Process an 'R CMD check'?
paths

Set or Get the path Attribute to or from an Object
search_rows

Search All Rows Across Columns of a Matrix-like Structure
set_hash

Set a Hash Attribute on an Object
missing_docs

Find Missing Documentation
powers_of_ten

Conversions from or to powers of ten.
strip_off_attributes

Strip Attributes off an Object
subset_sizes

Determine Subset Sizes Close to Equality
set_run_r_tests

Set the System Variable RUN_R_TESTS
split_code_file

Split a Code File Into Multiple Files
set_options

Set Options For Packages
sloboda

Sloboda's Growth Function
string2words

Convert a Character Vector Into an Enumeration
str2num

Convert Character Numbers to Numeric
un_hash

Separate an Object from its Hash Attribute
wipe_clean

Remove All Objects From an Environment
with_dir

Execute Code in a Temporary Working Directory
tapply

Apply a Function Over a Ragged Array
summary.filesearch

Summarize File Searches
vim

Edit a File With 'VIM' if Possible
weighted_variance

Calculate a Weighted Variance
wipe_tempdir

Wipe Clean the tempdir()
throw

Throw a Condition
view

View a File or Directory
touch

Mock the Unix touch Utility
check_ascii_file

Check the Number of Lines and Fields in a File
bulk_read_csv

Bulk Read Comma Separated Files
call_conditionally

Call a Function Conditionally
bulk_write_csv

Bulk Write Comma Separated Files
char2factor

Convert a Character Vector Into a Factor
count_groups

Count Observations per Groups
csv

Read and Write a Comma Separated File