Hong-Kong-Districts-Info/hkdatasets

hk_accidents namespace not found

Closed this issue · 1 comments

Just installed the latest version of the package (0893dca) for testing. Yet, looks like the hk_accidents namespace is not correctly exported?

library(hkdatasets)

hkdatasets::hk_accidents
#> Error: 'hk_accidents' is not an exported object from 'namespace:hkdatasets'

Created on 2021-08-16 by the reprex package (v2.0.0)

I could get the dataset when using :::.

Screenshot 2021-08-16 at 02 49 38

And other datasets could also be found with ::.

Screenshot 2021-08-16 at 02 51 57

Session info
sessioninfo::session_info()
#> ─ Session info ───────────────────────────────────────────────────────────────
#>  setting  value                       
#>  version  R version 4.1.0 (2021-05-18)
#>  os       macOS Big Sur 10.16         
#>  system   x86_64, darwin17.0          
#>  ui       X11                         
#>  language (EN)                        
#>  collate  en_US.UTF-8                 
#>  ctype    en_US.UTF-8                 
#>  tz       Asia/Hong_Kong              
#>  date     2021-08-16                  
#> 
#> ─ Packages ───────────────────────────────────────────────────────────────────
#>  package     * version date       lib
#>  cli           2.5.0   2021-04-26 [1]
#>  digest        0.6.27  2020-10-24 [1]
#>  evaluate      0.14    2019-05-28 [1]
#>  fs            1.5.0   2020-07-31 [1]
#>  glue          1.4.2   2020-08-27 [1]
#>  highr         0.9     2021-04-16 [1]
#>  hkdatasets  * 0.0.5   2021-08-15 [1]
#>  htmltools     0.5.1.1 2021-01-22 [1]
#>  knitr         1.33    2021-04-24 [1]
#>  magrittr      2.0.1   2020-11-17 [1]
#>  reprex        2.0.0   2021-04-02 [1]
#>  rlang         0.4.11  2021-04-30 [1]
#>  rmarkdown     2.9     2021-06-15 [1]
#>  rstudioapi    0.13    2020-11-12 [1]
#>  sessioninfo   1.1.1   2018-11-05 [1]
#>  stringi       1.6.2   2021-05-17 [1]
#>  stringr       1.4.0   2019-02-10 [1]
#>  withr         2.4.2   2021-04-18 [1]
#>  xfun          0.24    2021-06-15 [1]
#>  yaml          2.2.1   2020-02-01 [1]
#>  source                                              
#>  CRAN (R 4.1.0)                                      
#>  CRAN (R 4.1.0)                                      
#>  CRAN (R 4.1.0)                                      
#>  CRAN (R 4.1.0)                                      
#>  CRAN (R 4.1.0)                                      
#>  CRAN (R 4.1.0)                                      
#>  Github (Hong-Kong-Districts-Info/hkdatasets@0893dca)
#>  CRAN (R 4.1.0)                                      
#>  CRAN (R 4.1.0)                                      
#>  CRAN (R 4.1.0)                                      
#>  CRAN (R 4.1.0)                                      
#>  CRAN (R 4.1.0)                                      
#>  CRAN (R 4.1.0)                                      
#>  CRAN (R 4.1.0)                                      
#>  CRAN (R 4.1.0)                                      
#>  CRAN (R 4.1.0)                                      
#>  CRAN (R 4.1.0)                                      
#>  CRAN (R 4.1.0)                                      
#>  CRAN (R 4.1.0)                                      
#>  CRAN (R 4.1.0)                                      
#> 
#> [1] /Library/Frameworks/R.framework/Versions/4.1/Resources/library

Yes, this is good catch - I was trying to get around R CMD checks by putting hk_accidents in R/sysdata.rda, which of course means that this is not exported / made available to the user. Will need to look into this