Git Product home page Git Product logo

Comments (4)

aL3xa avatar aL3xa commented on July 25, 2024

This is a nice one indeed. However, you can't get reproducible example unless you also store the data with rapport object. Just think about it, as it's not a bugger for me to implement it, but it will certainly add some extra weight.

from rapport.

daroczig avatar daroczig commented on July 25, 2024

Thanks @aL3xa, you are right.
Please implement it with data list element added also - but with an option within rapport to add data to the returned rapport class default set to TRUE.

So suggested return value:

res <- list(
        metadata = meta,
        inputs = inputs,
        call = match.call(),
        data = data, ## check this out as I'm not sure
        report = report
        )

from rapport.

aL3xa avatar aL3xa commented on July 25, 2024

Yes, but I see one limitation here. If you aim at creating reproducible example, maybe we shouldn't save the contents of data arguments per se, but only the provided value. Furthermore, there should be an optional argument to save inputs, in order to reproduce examples, but that should be somehow related to tpl.examples function that we have implemented. It's not that hi-priority task, IMO, but we should think about it, that's for sure.

from rapport.

daroczig avatar daroczig commented on July 25, 2024

Based on the above suggested structure of return value: all inputs are saved with match.call() to call and if the whole dataset is attached (with data), then it's totally reproducible IMHO. The downside is that it's having some overhead (saving not needed variables too), but we can live with that :)

Might improve it later, but for the moment, that would be cool.

from rapport.

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.