You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 30, 2019. It is now read-only.
system.time, within, local are some of R's function where using assignments inside the arguments are perfectly ok, e.g:
GOOD
system.time(a <- sleep(1))
BAD
system.time(a = sleep(1))
GOOD
within(cars, speed.dist <- speed * dist)
BAD
within(cars, speed.dist = speed * dist)
Would it be possible to modify styles.assignment.notinfcall to handle such exceptions? If not, I would consider removing styles.assignment.notinfcall from lint's default list of tests: lint.style.
This may be related to halpo's issue #5.
system.time,within,localare some of R's function where using assignments inside the arguments are perfectly ok, e.g:GOOD
system.time(a <- sleep(1))
BAD
system.time(a = sleep(1))
GOOD
within(cars, speed.dist <- speed * dist)
BAD
within(cars, speed.dist = speed * dist)
Would it be possible to modify
styles.assignment.notinfcallto handle such exceptions? If not, I would consider removingstyles.assignment.notinfcallfromlint's default list of tests:lint.style.