Closed orichters closed 2 years ago
Also, I'm not sure about the pre-commit.ci failures, you didn't change anything in the dependencies, so I guess it at least doesn't get worse with this PR.
@johanneskoch94 you added https://github.com/pik-piam/magclass/blob/4df6a63c36df685bc1a95db6017875e5d151927c/R/as_tibble.R#L11 , but didn't add a dependency on pkgconfig in the DESCRIPTION. Do you know how to best resolve this (not related to this PR, just the place where it crops up due to better linting).
@johanneskoch94 you added
https://github.com/pik-piam/magclass/blob/4df6a63c36df685bc1a95db6017875e5d151927c/R/as_tibble.R#L11 , but didn't add a dependency on pkgconfig in the DESCRIPTION. Do you know how to best resolve this (not related to this PR, just the place where it crops up due to better linting).
added them to suggested
and pre-commit is fine now. Also added further tests and the functionality to call the col
by name, not only number.
Interesting... I guess since devtools::check
didn't complain, and you can only use this method when tibble
, and therefore pkgconfig
is installed (unless one uses :::
to call a method, which makes no sense at all), there never was a problem before. But thanks @orichters, that's what I would have suggested as well.
unitsplit.R
, slightly adapted such that it also accepts strings or vectors of strings: ifncol
ofx
isNULL
, it simply puts it into a data.frame.unitsplit()
can now be called not with column number, but name.