Error in asNamespace(ns) : not a namespace

Triggered in R package, where /R folder contains non-functions, scripts or code that should not be executed.