Giter VIP home page Giter VIP logo

Comments (3)

jimhester avatar jimhester commented on September 3, 2024

1ba3810 should close this.

There were actually two separate issues going on here.

  1. S4 classes need the methods package to be loaded and the default environment the expressions were evaulated in was baseenv(), which does not load methods.
  2. If there was a error in evaluating no expression would be assigned to fun, so it would break when later body(fun) was run.

So the fix was to use globalenv() rather than baseenv() and to only continue the object usage checks if the evaluation did not error.

from lintr.

jimhester avatar jimhester commented on September 3, 2024

Also using this package for homework grading is something I had never thought of, great idea!

from lintr.

fabian-s avatar fabian-s commented on September 3, 2024

Awesome, thank you!

from lintr.

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.