Code Monkey home page Code Monkey logo

Comments (7)

cjyetman avatar cjyetman commented on September 17, 2024 1

using group_id <- name_abcd <- sector <- activity_unit <- region <- scenario_source <- scenario <- year <- NULL inside the function fill_missing_direction() is one hack to get around the build notes (see tidyverse/tidyr#971 (comment))

the other is to add these to imports.R (see tidyverse/tidyr#971 (comment))

utils::globalVariables("group_id")
utils::globalVariables("name_abcd")
utils::globalVariables("sector")
utils::globalVariables("activity_unit")
utils::globalVariables("region")
utils::globalVariables("scenario_source")
utils::globalVariables("scenario")
utils::globalVariables("year")

seems like these will be the only options until tidyverse figures out and implements a very different strategy (see tidyverse/tidyr#971 (comment))

from pacta.multi.loanbook.analysis.

jacobvjk avatar jacobvjk commented on September 17, 2024 1

I don't really love either, but would probably lean towards the first option as it seems like it does not play with global variables across the entire package for no reason.

from pacta.multi.loanbook.analysis.

jacobvjk avatar jacobvjk commented on September 17, 2024

I have not been able to figure out how to get rid of the NOTE relating to function fill_missing_direction(). Any attempt I have made at fixing the no visible binding for global variable issue in two nested tidyr functions has lead to ERRORs in R CMD... any ideas?

from pacta.multi.loanbook.analysis.

jdhoffa avatar jdhoffa commented on September 17, 2024

Wanna schedule a pair program with me on Thursday? Need a bit more context to help 😊

from pacta.multi.loanbook.analysis.

AlexAxthelm avatar AlexAxthelm commented on September 17, 2024

I know I'm late to the party here, but is there a reason to not use quoted strings, rather than bare column names?

from pacta.multi.loanbook.analysis.

jacobvjk avatar jacobvjk commented on September 17, 2024

I know I'm late to the party here, but is there a reason to not use quoted strings, rather than bare column names?

tried that, it leads to errors

from pacta.multi.loanbook.analysis.

cjyetman avatar cjyetman commented on September 17, 2024

I know I'm late to the party here, but is there a reason to not use quoted strings, rather than bare column names?

because it uses "<[data-masking]>"
https://tidyr.tidyverse.org/reference/expand.html
https://tidyr.tidyverse.org/reference/tidyr_data_masking.html

from pacta.multi.loanbook.analysis.

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.