Comments (3)
1ba3810 should close this.
There were actually two separate issues going on here.
- S4 classes need the methods package to be loaded and the default environment the expressions were evaulated in was
baseenv()
, which does not loadmethods
. - If there was a error in evaluating no expression would be assigned to
fun
, so it would break when laterbody(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.
Also using this package for homework grading is something I had never thought of, great idea!
from lintr.
Awesome, thank you!
from lintr.
Related Issues (20)
- Lint `rev(sort(x))` pattern in `seq_linter()` in favour of the more efficient alternative
- Lint `deparse(substitute(x))` for `deparse1(substitute(x))` HOT 2
- False positive in return_linter(return_style="explicit") when the formals are complex
- .Rnw named chunks like <<name>> is an error (missing chunk end)
- Scoping `{meta.lintr}` HOT 1
- Add new lintr to ensure subsetting is done with integer HOT 3
- lint missing argument name HOT 1
- New linter for unnamed arguments combined with `...` HOT 1
- Generating an explicit .lintr.R file HOT 2
- False positive in pipe_continuation_linter when code has nested pipes HOT 4
- Cleaner output in the examples on the website? HOT 1
- Add base pipe to `backport_linter()` HOT 1
- Custom message fails for string_boundary_linter(), gives 'NA' HOT 2
- `T_and_F_symbol_linter()` false positive with formula syntax HOT 1
- Add .lintr to .Rbuildignore when use_lintr() is run within a package HOT 1
- Update `seq_linter()` docs to highlight difference between `seq_along()` and `seq_len()` HOT 8
- Provide feedback when no lints are found
- Is caching not working as expected? HOT 6
- Support clickable hyperlinks in lintr output if hyperlinks are available (but not markers)
- call. argument should not be added for custom conditions HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lintr.