mkshaw / r2mlm

r2mlm: R Package for Calculating R-Squared in Multilevel Models
27 stars 1 forks source link

Error in r2mlm_comp: unused argument (.data) #38

Closed mkshaw closed 3 years ago

mkshaw commented 3 years ago
Error in add_interaction_vars_to_data(., interaction_vars, .data) : 
  unused argument (.data)

If I just use add_interaction_vars_to_data(interaction_vars, .) it works, but R CMD check throws a warning/note. Judging by this error containing a dot already, maybe I could edit the add_interaction_vars_to_data function to accept arguments (data, interaction_vars) and the dot will automatically be passing the dot forward? If yes, then I'll need to change the code elsewhere in the function that calls add_interaction_vars_to_data to reflect the change of argument order. Maybe a good idea to call functions not reliant on order?

mkshaw commented 3 years ago

Fixed in commit 340451a.