Skip to content

this.path

Get Executing Script's Path

v2.7.1 · Nov 7, 2025 · MIT + file LICENSE

Description

Determine the path of the executing script. Compatible with several popular GUIs: 'Rgui', 'RStudio', 'Positron', 'VSCode', 'Jupyter', 'Emacs', and 'Rscript' (shell). Compatible with several functions and packages: 'source()', 'sys.source()', 'debugSource()' in 'RStudio', 'compiler::loadcmp()', 'utils::Sweave()', 'box::use()', 'knitr::knit()', 'plumber::plumb()', 'shiny::runApp()', 'package:targets', and 'testthat::source_file()'.

Downloads

3K

Last 30 days

2399th

8.2K

Last 90 days

30.3K

Last year

Trend: +14.2% (30d vs prior 30d)

CRAN Check Status

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

compiled code

File ‘this.path/libs/this.path.so’:
  Found non-API calls to R: ‘R_CurrentExpression’, ‘R_FalseValue’,
    ‘R_LogicalNAValue’, ‘R_MB_CUR_MAX’, ‘R_NamespaceRegistry’,
    ‘R_TrueValue’, ‘R_UnboundValue’, ‘Rf_findVar’, ‘Rf_findVarInFrame’
These entry points may be removed soon:
‘Rf_findVar’, ‘Rf_findVarInFrame’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
WARNING r-devel-linux-x86_64-debian-gcc

compiled code

File ‘this.path/libs/this.path.so’:
  Found non-API calls to R: ‘R_CurrentExpression’, ‘R_FalseValue’,
    ‘R_LogicalNAValue’, ‘R_MB_CUR_MAX’, ‘R_NamespaceRegistry’,
    ‘R_TrueValue’, ‘R_UnboundValue’, ‘Rf_findVar’, ‘Rf_findVarInFrame’
These entry points may be removed soon:
‘Rf_findVar’, ‘Rf_findVarInFrame’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
WARNING r-devel-linux-x86_64-fedora-clang

compiled code

File ‘this.path/libs/this.path.so’:
  Found non-API calls to R: ‘R_CurrentExpression’, ‘R_FalseValue’,
    ‘R_LogicalNAValue’, ‘R_MB_CUR_MAX’, ‘R_NamespaceRegistry’,
    ‘R_TrueValue’, ‘R_UnboundValue’, ‘Rf_findVar’, ‘Rf_findVarInFrame’
These entry points may be removed soon:
‘Rf_findVar’, ‘Rf_findVarInFrame’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
WARNING r-devel-linux-x86_64-fedora-gcc

compiled code

File ‘this.path/libs/this.path.so’:
  Found non-API calls to R: ‘R_CurrentExpression’, ‘R_FalseValue’,
    ‘R_LogicalNAValue’, ‘R_MB_CUR_MAX’, ‘R_NamespaceRegistry’,
    ‘R_TrueValue’, ‘R_UnboundValue’, ‘Rf_findVar’, ‘Rf_findVarInFrame’
These entry points may be removed soon:
‘Rf_findVar’, ‘Rf_findVarInFrame’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
WARNING r-devel-macos-arm64

compiled code

File ‘this.path/libs/this.path.so’:
  Found non-API calls to R: ‘Rf_findVar’, ‘Rf_findVarInFrame’
These entry points may be removed soon:
‘Rf_findVar’, ‘Rf_findVarInFrame’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
WARNING r-devel-windows-x86_64

compiled code

File 'this.path/libs/x64/this.path.dll':
  Found non-API calls to R: 'R_CurrentExpression', 'R_FalseValue',
    'R_LogicalNAValue', 'R_MB_CUR_MAX', 'R_NamespaceRegistry',
    'R_TrueValue', 'R_UnboundValue', 'Rf_findVar', 'Rf_findVarInFrame'
These entry points may be removed soon:
'Rf_findVar', 'Rf_findVarInFrame'

Compiled code should not call non-API entry points in R.

See 'Writing portable packages' in the 'Writing R Extensions' manual,
and section 'Moving into C API compliance' for issues with the use of
non-API entry points.
WARNING r-patched-linux-x86_64

compiled code

File ‘this.path/libs/this.path.so’:
  Found non-API calls to R: ‘R_CurrentExpression’, ‘R_FalseValue’,
    ‘R_LogicalNAValue’, ‘R_MB_CUR_MAX’, ‘R_MissingArg’,
    ‘R_NamespaceRegistry’, ‘R_TrueValue’, ‘R_UnboundValue’,
    ‘Rf_findVar’, ‘Rf_findVarInFrame’
These entry points may be removed soon:
‘Rf_findVar’, ‘Rf_findVarInFrame’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.

Check History

WARNING 9 OK · 4 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE Mar 20, 2026
NOTE r-devel-linux-x86_64-debian-clang

compiled code

File ‘this.path/libs/this.path.so’:
  Found non-API calls to R: ‘Rf_findVar’, ‘Rf_findVarInFrame’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
WARNING r-devel-linux-x86_64-debian-gcc

compiled code

File ‘this.path/libs/this.path.so’:
  Found non-API calls to R: ‘Rf_findVar’, ‘Rf_findVarInFrame’
These entry points may be removed soon:
‘Rf_findVar’, ‘Rf_findVarInFrame’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
NOTE r-devel-linux-x86_64-fedora-clang

compiled code

File ‘this.path/libs/this.path.so’:
  Found non-API calls to R: ‘Rf_findVar’, ‘Rf_findVarInFrame’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
NOTE r-devel-linux-x86_64-fedora-gcc

compiled code

File ‘this.path/libs/this.path.so’:
  Found non-API calls to R: ‘Rf_findVar’, ‘Rf_findVarInFrame’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
NOTE r-devel-windows-x86_64

compiled code

File 'this.path/libs/x64/this.path.dll':
  Found non-API calls to R: 'Rf_findVar', 'Rf_findVarInFrame'

Compiled code should not call non-API entry points in R.

See 'Writing portable packages' in the 'Writing R Extensions' manual,
and section 'Moving into C API compliance' for issues with the use of
non-API entry points.
NOTE 13 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 16, 2026
NOTE r-devel-linux-x86_64-debian-gcc

compiled code

File ‘this.path/libs/this.path.so’:
  Found non-API calls to R: ‘Rf_findVar’, ‘Rf_findVarInFrame’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (4)

imports

suggests

Dependency Network

Dependencies Reverse dependencies apmx neptune rfriend lisat this.path

Version History

new 2.7.1 Mar 10, 2026
updated 2.7.1 ← 2.7.0 diff Nov 6, 2025
updated 2.7.0 ← 2.6.0 diff Apr 9, 2025
updated 2.6.0 ← 2.5.0 diff Dec 17, 2024
updated 2.5.0 ← 2.4.0 diff Jun 29, 2024
updated 2.4.0 ← 2.3.1 diff Feb 15, 2024
updated 2.3.1 ← 2.3.0 diff Dec 10, 2023
updated 2.3.0 ← 2.2.0 diff Dec 1, 2023
updated 2.2.0 ← 2.1.0 diff Oct 28, 2023
updated 2.1.0 ← 2.0.0 diff Sep 12, 2023
updated 2.0.0 ← 1.4.0 diff Aug 8, 2023
updated 1.4.0 ← 1.3.0 diff Apr 17, 2023
updated 1.3.0 ← 1.2.0 diff Apr 8, 2023
updated 1.2.0 ← 1.1.0 diff Jan 15, 2023
updated 1.1.0 ← 1.0.1 diff Nov 30, 2022
updated 1.0.1 ← 1.0.0 diff Sep 22, 2022
updated 1.0.0 ← 0.11.0 diff Sep 21, 2022
updated 0.11.0 ← 0.8.0 diff Sep 2, 2022
updated 0.8.0 ← 0.7.0 diff Jul 10, 2022
updated 0.7.0 ← 0.6.0 diff Apr 23, 2022