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("An_Introduction_to_fritools", package = "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

877

Version

3.3.0

License

BSD_2_clause + file LICENSE

Maintainer

Andreas Dominik Cullmann

Last Published

March 22nd, 2022

Functions in fritools (3.3.0)

compare_vectors

Compare Two Vectors
csv

Read and Write a Comma Separated File
check_ascii_file

Check the Number of Lines and Fields in a File
convert_umlauts_to_tex

Tex Codes for German Umlauts
call_conditionally

Call a Function Conditionally
csv2csv

Convert a German Comma Separated File into a Comma Separated File
bulk_write_csv

Bulk Write Comma Separated Files
convert_umlauts_to_ascii

Convert German umlauts to a more or less suitable ascii representation.
bulk_read_csv

Bulk Read Comma Separated Files
call_safe

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

Create a Copy of a File
file_copy

Force Copying a File While backing it up
get_rscript_script_path

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

get_r_cmd_batch_script_path

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

Is an Object of Length Zero?
get_options

Get Options For Packages
is_running_on_fvafrcu_machines

Is the Machine Running the Current R Process Owned by FVAFRCU?
get_package_version

Query Installed Package Version
get_script_path

Get the Path of the R Code File
is_running_on_gitlab_com

file_modified_last

Get the File Modified Last
is_success

Does the Return Value of a Command Signal Success?
set_run_r_tests

Set the System Variable RUN_R_TESTS
subset_sizes

Determine Subset Sizes Close to Equality
split_code_file

Split a Code File Into Multiple Files
get_unique_string

Create a Fairly Unique String
set_hash

Set a Hash Attribute on an Object
is_path

Check Whether an Object Contains a Valid File System Path
fromto

Extract All Items of a Vector Between Two Patterns
fritools-package

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

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

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

Is a Version Requirement Met?
get_mtime

Get the mtime Attribute to or from an Object
get_boolean_envvar

Get a Boolean Environment Variable
summary.filesearch

Summarize File Searches
view

View a File or Directory
find_files

Find Files on Disk
is_difftime_less

Check Whether Two Times Differ Less Than A Given Value
is_cran

Is R Running on CRAN?
vim

Edit a File With VIM if Possible
get_run_r_tests

Get System Variable RUN_R_TESTS
is_false

Provide isFALSE for R < 3.5.0
with_dir

Execute Code in a Temporary Working Directory
get_script_name

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

Check Whether Files are Current
golden_ratio

Calculate the Golden Ratio
index_groups

Determine Indices and Sizes of Subsets
is_windows

Is the System Running a Windows Machine?
is_force

Opt-out Via Option
is_r_cmd_check

Is the Current R Process an R CMD check?
strip_off_attributes

Strip Attributes off an Object
is_r_package_installed

Is an R Package Installed?
search_files

Search Files for a Pattern
memory_hogs

Find Memory Hogs
missing_docs

Find Missing Documentation
search_rows

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

Mock the Unix touch Utility
is_installed

Is an External Program Installed?
is_not_false

un_hash

Separate an Object from its Hash Attribute
load_internal_functions

Load a Package's Internals
set_options

Set Options For Packages
round_half_away_from_zero

Round Half Away From Zero
run_r_tests_for_known_hosts

Force Testing on Known Hosts
str2num

Convert Character Numbers to Numeric
throw

Throw a Condition
wipe_clean

Remove All Objects From an Environment
weighted_variance

Calculate a Weighted Variance
tapply

Apply a Function Over a Ragged Array
paths

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

Install a Tarball or a Directory