barbone,

I recently found out I can do parenthetical method chaining (there's a real term for this right?) in like the examples below.

args <- (  
 scribe::command_args()  
 $add_argument("foo", action = "flag")  
 $add_argument("bar", action = "list", default = 1)  
 $parse()  
)  
wb <- (  
 openxlsx2::wb_workbook()  
 $add_worksheet()  
 $add_data(x = datasets::attitude)  
)  

I think I'm going to update a lot of scripts now.
@RStats

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • rosin
  • thenastyranch
  • ethstaker
  • osvaldo12
  • mdbf
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • Youngstown
  • ngwrru68w68
  • slotface
  • GTA5RPClips
  • kavyap
  • cubers
  • JUstTest
  • everett
  • cisconetworking
  • tacticalgear
  • anitta
  • khanakhh
  • normalnudes
  • Durango
  • modclub
  • tester
  • provamag3
  • Leos
  • megavids
  • lostlight
  • All magazines