Giter Club home page Giter Club logo

Comments (4)

eddelbuettel avatar eddelbuettel commented on August 17, 2024

Howdy (and nice meeting you last weekend ;-)

I think that has bit me too once before.

Question is ... how to best compare? Just two file.info() calls and compare size? I'd rather not depend on digest to compare checksums. Does R has a base checksummer? Or should we just always copy it out?

from pinp.

coatless avatar coatless commented on August 17, 2024

The issue here is some may modify the pinp.cls file. So, copying on every knit probably isn't ideal.

Probably, best to check file.info() and emit a message that emphasizes the underlying class file changed. If the compilation is broken, then delete the old .cls file for a new one to be added in its place.

The pinp.cls file is not in-sync with the package.
This may happen if it has been modified either locally or during a package update.
If there is trouble knitting the document, please delete the pinp.cls file.

from pinp.

eddelbuettel avatar eddelbuettel commented on August 17, 2024

So, copying on every knit probably isn't ideal.

Yep. There was a reason we didn't do that.

But then suppose someone mod'ed it for good reason. Should we then yell at them each time we render the document because we see a change?

A puzzle...

from pinp.

eddelbuettel avatar eddelbuettel commented on August 17, 2024

There is tools::md5sum. So maybe we just 'quickly' run that over both, and issue the warning if different. If we feel generous we can add package-environment toggle to tell it to never yell....

from pinp.

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.