AustralianAntarcticDivision / raadfiles

Data library management tools for files
https://australianantarcticdivision.github.io/raadfiles/
2 stars 1 forks source link

new file approach #7

Closed mdsumner closed 6 years ago

mdsumner commented 6 years ago

This will be another upgrade over the discussion in #3

mdsumner commented 6 years ago

Pretty sure RAAD_DIR was only used to set the environment variable in R CMD check, this code ran and relied on ~/.R/Rbuildenviron and Rcheckenviron

  ## try RAAD_DIR, which may only be available to R CMD check from ~/.R/check.Renviron
  #r <- getOption("repos")
  #dd <- getOption("default.datadir")

  #if (is.null(dd["default.datadir"])) {
  #  dd["default.datadir"] <- Sys.getenv("RAAD_DIR");
  #  options(repos = r, default.datadir = dd);
  #}
mdsumner commented 6 years ago

LOL, including .raad_admin/file_db.rds has the nice side effect of being recursive, and now there's never an empty data.*/ folder

mdsumner commented 6 years ago

Utilities are

mdsumner commented 6 years ago

For setting up, we need to do the blueant / bb_sync thing and then

remotes::install_github("AustralianAntarcticDivision/raadfiles@data-roots")
remotes::install_github("AustralianAntarcticDivision/raadtools@raadfiles-data-root")

my_data_dir <- "C:/temp/data/...etc/"
raadfiles:::set_raad_data_roots(my_data_dir)
raadfiles:::run_this_function_to_build_raad_cache()
raadfiles:::set_raad_filenames()
mdsumner commented 6 years ago

Check all functions in raadfiles and their raadtools counterparts:

mdsumner commented 6 years ago

Turn off bare directory listing in dir_ls

Done: set to type = c("file", "symlink")

mdsumner commented 6 years ago

Pretty sure this is now all good in data-roots branch. Will play around on rs2 and local as a user for a bit. All servers are still using master.

mdsumner commented 6 years ago

Now committed on bw and aes2, all changes in master in raadtools and raadfiles.