Skip to content

nolock

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

v1.1.0 · Nov 14, 2023 · GPL-3

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.

Downloads

157

Last 30 days

20601st

157

Last 90 days

157

Last year

CRAN Check Status

11 NOTE
3 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang NOTE
r-devel-linux-x86_64-debian-gcc NOTE
r-devel-linux-x86_64-fedora-clang NOTE
r-devel-linux-x86_64-fedora-gcc NOTE
r-devel-macos-arm64 NOTE
r-devel-windows-x86_64 NOTE
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 NOTE
r-release-linux-x86_64 NOTE
r-release-macos-arm64 NOTE
r-release-macos-x86_64 NOTE
r-release-windows-x86_64 NOTE
Check details (14 non-OK)
NOTE r-devel-linux-x86_64-debian-clang

DESCRIPTION meta-information

  Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    ‘libr_called.R’ ‘libr_unused.R’ ‘libr_used.R’
NOTE r-devel-linux-x86_64-debian-gcc

DESCRIPTION meta-information

  Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    ‘libr_called.R’ ‘libr_unused.R’ ‘libr_used.R’
NOTE r-devel-linux-x86_64-fedora-clang

DESCRIPTION meta-information

  Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    ‘libr_called.R’ ‘libr_unused.R’ ‘libr_used.R’
NOTE r-devel-linux-x86_64-fedora-gcc

DESCRIPTION meta-information

  Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    ‘libr_called.R’ ‘libr_unused.R’ ‘libr_used.R’
NOTE r-devel-macos-arm64

DESCRIPTION meta-information

  Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    ‘libr_called.R’ ‘libr_unused.R’ ‘libr_used.R’
NOTE r-devel-windows-x86_64

DESCRIPTION meta-information

  Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    'libr_called.R' 'libr_unused.R' 'libr_used.R'
OK r-oldrel-macos-arm64

*


            
OK r-oldrel-macos-x86_64

*


            
OK r-oldrel-windows-x86_64

*


            
NOTE r-patched-linux-x86_64

DESCRIPTION meta-information

  Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    ‘libr_called.R’ ‘libr_unused.R’ ‘libr_used.R’
NOTE r-release-linux-x86_64

DESCRIPTION meta-information

  Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    ‘libr_called.R’ ‘libr_unused.R’ ‘libr_used.R’
NOTE r-release-macos-arm64

DESCRIPTION meta-information

  Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    ‘libr_called.R’ ‘libr_unused.R’ ‘libr_used.R’
NOTE r-release-macos-x86_64

DESCRIPTION meta-information

  Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    ‘libr_called.R’ ‘libr_unused.R’ ‘libr_used.R’
NOTE r-release-windows-x86_64

DESCRIPTION meta-information

  Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    'libr_called.R' 'libr_unused.R' 'libr_used.R'

Check History

NOTE 3 OK · 11 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 9, 2026
NOTE r-devel-linux-x86_64-debian-clang

DESCRIPTION meta-information

  Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    ‘libr_called.R’ ‘libr_unused.R’ ‘libr_used.R’
NOTE r-devel-linux-x86_64-debian-gcc

DESCRIPTION meta-information

  Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    ‘libr_called.R’ ‘libr_unused.R’ ‘libr_used.R’
NOTE r-devel-linux-x86_64-fedora-clang

DESCRIPTION meta-information

  Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    ‘libr_called.R’ ‘libr_unused.R’ ‘libr_used.R’
NOTE r-devel-linux-x86_64-fedora-gcc

DESCRIPTION meta-information

  Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    ‘libr_called.R’ ‘libr_unused.R’ ‘libr_used.R’
NOTE r-devel-macos-arm64

DESCRIPTION meta-information

  Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    ‘libr_called.R’ ‘libr_unused.R’ ‘libr_used.R’
NOTE r-devel-windows-x86_64

DESCRIPTION meta-information

  Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    'libr_called.R' 'libr_unused.R' 'libr_used.R'
NOTE r-patched-linux-x86_64

DESCRIPTION meta-information

  Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    ‘libr_called.R’ ‘libr_unused.R’ ‘libr_used.R’
NOTE r-release-linux-x86_64

DESCRIPTION meta-information

  Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    ‘libr_called.R’ ‘libr_unused.R’ ‘libr_used.R’
NOTE r-release-macos-arm64

DESCRIPTION meta-information

  Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    ‘libr_called.R’ ‘libr_unused.R’ ‘libr_used.R’
NOTE r-release-macos-x86_64

DESCRIPTION meta-information

  Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    ‘libr_called.R’ ‘libr_unused.R’ ‘libr_used.R’
NOTE r-release-windows-x86_64

DESCRIPTION meta-information

  Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    'libr_called.R' 'libr_unused.R' 'libr_used.R'

Dependency Network

Dependencies Reverse dependencies crayon rstudioapi stringr NCmisc nolock

Version History

new 1.1.0 Mar 10, 2026