Inspectopedia 2025.2 Help

R

Attempt to generate an object from a virtual class  

Reports a problem when you create an object of the VIRTUAL class.

Classname should match the variable assignee name  

Variable and argument class name in expression 'UserClass <- R6Class("UserClass")' should match.

Comparing to 'NA' instead of 'is.na'  

Reports usages of the NA constant in equality checks and suggests replacing it with the is.na function.

Deprecated 'setClass' argument  

The representation, access, version, and S3methods arguments of the setCall function are deprecated since R 3.0.0 and should be avoided.

Deprecated operator <b>**</b>  

Reports usages of the ** deprecated exponential operator.

Empty S4 Class name  

Reports empty S4 Class name characters in class names and unavailable slots types.

Empty separator in the 'paste' function  

Reports an empty separator in the 'paste' function.

Improper assignment operator  

Reports usages of '=' as an assignment operator and suggests using '<-' instead.

Inappropriate property name  

Reports inappropriate property names.

Ineligible assignment operator  

Reports usages of '<<-' or '->>' as an assignment operator.

Missing package  

Reports a problem when you import a package that has not been installed yet on your R interpreter.

Missing R Markdown requirements  

Reports missing rmarkdown or knitr libraries required for R Markdown.

Misused nested dplyr calls  

Reports nested dplyr calls and suggests replacing them by pipe.

Non-vector logical operators in dplyr expressions  

Reports usages of `&&` and `||` operations in dplyr expressions.

Problems in 'rstudioapi::sourceMarkers' calls  

This inspection is used for adding problems from rstudioapi::sourceMarkers calls.

Redundant boolean expression  

Reports redundancy in boolean expressions.

Redundant concatenation  

Reports c calls with zero or one arguments.

Redundant internal access  

Reports usages of ':::' as a namespace access operator and suggests using '::' if it is possible.

Redundant semicolon  

Reports redundant semicolon (;) tokens that are not required in R.

Unknown S4 Class name  

Reports class names that are not found across Project and Library files.

Unknown S4 generic function name  

Reports declaration S4 methods, which generic functions are not found across Project and Library files.

Unresolved reference  

Reports unresolved symbol and function references.

Unsafe sequence  

Reports unsafe sequences generated by colon (:) and suggests replacing them with safe calls.

Unused function parameter  

Reports function parameters that are not used in the function body.

Unused variable or function  

Reports variables that are not used in the current scope.

Last modified: 29 July 2025