r-devtools

Installed R github package does not include R/sysdata.Rda

纵饮孤独 提交于 2020-06-17 08:06:13
问题 I have an R github package that I can 'successfully' install using devtools::install_github("jwilliman/ethnicNZ") (or remotes::install_github ). On github the package contains internal data saved as 'R/sysdata.Rda' using the command usethis::use_data(ethnic05, internal = TRUE) . However, after installation the files 'sysdata.rdb' and 'sysdata.rdx' are missing from the '../Library/ethnicNZ/R' folder, and when running the command ethnicNZ::find_data() from the package I get the error Error in

R packages: “Error: object 'compute' not found whilst loading namespace ..”

佐手、 提交于 2019-12-11 15:54:17
问题 My directory structure is as follows: c:/Users/bob/MyPackageName c:/Users/bob/MyPackageName/R c:/Users/bob/MyPackageName/tests c:/Users/bob/MyPackageName/tests/testthat My development session normally consists of starting an R session in the package root ( c:/Users/bob/MyPackageName ), and running devtools::load_all() devtools::test() followed by alternating the addition of little bits in MyPackageName/tests/testthat/mytest.R and in MyPackageName/R/mycode.R . When starting a session returns