Closed JohnCoene closed 4 years ago
Hi Felipe,
Really neat package you put together!
Below are the changes included in the PR, so are good practice (I hope) others are rather opinionated.
match.arg
download_this
inherits
class
if
output_name
download_this(mtcars)
mtcars.csv
Let me know what you think :)
Hi @JohnCoene!
Thank you so much for the PR! This looks fantastic! Thanks a lot for all the improvements! I never used inherits before, it is good to know that is good practice!
Hi Felipe,
Really neat package you put together!
Below are the changes included in the PR, so are good practice (I hope) others are rather opinionated.
match.arg
at the top ofdownload_this
, before said arguments are used otherwise function can still fail.inherits
instead ofclass
since the latter can return a vector of length > 1 and thus may break theif
statement checkoutput_name
optional. The function deparses the data object to obtain a stringdownload_this(mtcars)
will download a filemtcars.csv
.Let me know what you think :)