GithubHelp home page GithubHelp logo

Comments (3)

egenn avatar egenn commented on September 3, 2024

I fixed some and removed some. The remaining are legitimate data.table syntax.
Do we really need to use dummy assignments every time we use data.table in order to please R CMD check?

* checking R code for possible problems ... [24s/24s] NOTE
dplot3_box: no visible binding for global variable ‘ID’
dplot3_box: no visible binding for global variable ‘timeperiod’
dt_describe: no visible binding for global variable ‘..index_nm’
dt_describe: no visible binding for global variable ‘..index_cf’
dt_describe: no visible binding for global variable ‘..index_dt’
dt_get_duplicates: no visible binding for global variable ‘..on’
dt_get_factor_levels: no visible binding for global variable
  ‘..factor_index’
glm2table: no visible binding for global variable ‘..i’
matchCasesByRules: no visible binding for global variable ‘ID’
mplot3_laterality: no visible binding for global variable ‘..index’
preprocess_: no visible binding for global variable ‘..exclude’
s_LightRuleFit: no visible binding for global variable ‘Empirical_Risk’
s_LightRuleFit: no visible binding for global variable ‘Coefficient’
Undefined global functions or variables:
  ..exclude ..factor_index ..i ..index ..index_cf ..index_dt ..index_nm
  ..on Coefficient Empirical_Risk ID timeperiod

from rtemis.

egenn avatar egenn commented on September 3, 2024

I set everything to NULL as suggested and the NOTE is gone.

from rtemis.

HenrikBengtsson avatar HenrikBengtsson commented on September 3, 2024

Do we really need to use dummy assignments every time we use data.table in order to please R CMD check?

I do this (set dummy variables to NULL inside functions for NSE variables), because then when R CMD check --as-cran complains in the future, I know it's most likely a true positive. If I'd used utils::globalVariables(), there's a risk that there will be false negatives, especially if your code base is huge.

I write "To please R CMD check", but I'm really grateful for these checks, because they definitely have spotted bugs in code, both in my code and others.

It's awesome that the package now passes the static-code inspection/validation.

from rtemis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.