Learn R Programming

nolock (version 1.1.0)

Append 'WITH (NOLOCK)' to 'SQL' Queries, Get Packages in Active Script

Description

Provides a suite of tools that can assist in enhancing the processing efficiency of 'SQL' and 'R' scripts. - The 'libr_unused()' retrieves a vector of package names that are called within an 'R' script but are never actually used in the script. - The 'libr_used()' retrieves a vector of package names actively utilized within an 'R' script; packages loaded using 'library()' but not actually used in the script will not be included. - The 'libr_called()' retrieves a vector of all package names which are called within an 'R' script. - 'nolock()' appends 'WITH (nolock)' to all tables in 'SQL' queries. This facilitates reading from databases in scenarios where non-blocking reads are preferable, such as in high-transaction environments.

Copy Link

Version

Install

install.packages('nolock')

Monthly Downloads

193

Version

1.1.0

License

GPL-3

Maintainer

Arkadiusz W. Pajda

Last Published

November 15th, 2023

Functions in nolock (1.1.0)

nolock

'Append WITH (NOLOCK) to SQL Queries'
libr_unused

'Get Unused Packages in the Active 'R' Script'
libr_called

'Get Packages Called in the Active 'R' Script'
libr_used

'Get Packages Used in the Active Script'