Being inspired by the presentation at RR_2023 Avignon, I've run autoimport() on the code in https://github.com/mlverse/tabnet
I'm impressed by the user interface but I get the following issue on few files where the first line of code in the file is the function definition (i.e. function without Roxygen skeleton )
Before autoimport()
file R/pretraining.R is starting with the following lines :
# git clone https://github.com/mlverse/tabnet
# cd tabnet
library(autoimport)
autoimport(files = "R/dials.R")
#> Error: './NAMESPACE' does not exist in current working directory ('/tmp/RtmpXgZklI/reprex-301dcf3b5c6d89-pure-tayra').
Hi C,
It was very nice to talk with you at RR2023, and I'm glad you tried my package :-)
I think both your issues are corrected now, but don't hesitate to reopen if not.
Current situation
Being inspired by the presentation at RR_2023 Avignon, I've run
autoimport()
on the code in https://github.com/mlverse/tabnet I'm impressed by the user interface but I get the following issue on few files where the first line of code in the file is the function definition (i.e. function without Roxygen skeleton )Before
autoimport()
file
R/pretraining.R
is starting with the following lines :After
autoimport()
file
R/pretraining.R
is starting with the following lines :where we can see the function definition line is doubled around the Roxygen
@importFrom
statementsee https://github.com/mlverse/tabnet/blob/9890314421526b2244433ea1f168078fd8feb447/R/dials.R#L1-L3 see https://github.com/mlverse/tabnet/blob/9890314421526b2244433ea1f168078fd8feb447/R/package.R#L1-L3 see https://github.com/mlverse/tabnet/blob/9890314421526b2244433ea1f168078fd8feb447/R/pretraining.R#L1-L3
Reproducible example
Created on 2023-06-25 with reprex v2.0.2