USF-IMARS / mbon_zooplankton_to_dwc

This repository is used to setup a pipeline to convert zooplankton data into OBIS formats
0 stars 1 forks source link

TODO: Test out project on Linux #1

Closed sebastiandig closed 1 year ago

sebastiandig commented 1 year ago

Hi @7yl4r ,

This is a reminder to download and start the project on your local machine. Currently, this should be run in Rstudio and not on the CLI.

Rstudio > File > New Project > Version Control > Git > Repo URL obis_zooplankton_setup

TODO: test out download TODO: @sebastiandig: find a way to force download necessary packages.

Best, Sebastian

7yl4r commented 1 year ago

The best way I have found to do package setup is to use a DESCRIPTION file and the devtools package. Here are my notes on it

7yl4r commented 1 year ago

Testing on Ubuntu 22.04.1 LTS :

  1. [x] README was clear on how to get started
  2. [ ] setup_project.Rmd :
    • RStudio shows the message "package Librarian required but not installed..." BUT...
    • libarian::shelf seems to be working as expected
    • I am seeing some install errors flash by e.g.:
      • "ERROR: dependency ‘finch’ is not available for package ‘bdchecks’"
    • after doing the requested Ctrl+Shift+F10, I am asked if I want to copy some files. I selected yes and got this error:
      Error: [EISDIR] Failed to copy '/home/tylar/repos/obis_zooplankton_setup/data/metadata' to '/home/tylar/repos/obis_zooplankton_setup/data/raw/data/metadata': illegal operation on a directory

running the .Rmd from top again shows the same issues. Some install errors, a prompt to restart R, the the "illegal operation on a directory"

sebastiandig commented 1 year ago
  1. Librarian:
    • The message package librarian required but not installed is from the using require(), but if FALSE then it will install in the next line. Maybe I can suppress this message so that there wouldn't be any confusion.
  2. bdchecks may not be necessary at all. This was just a alternate way to check if the required DarwinCore items were in the final dataframe. I can remove it if you think this is not necessary. If you want an example of it's use, I can grab a screenshot for you.
  3. The copying of files may be an issue previously
    • I did some editing of my code that you may need to pull.
    • When I started a new project to show as the "example" for the meeting, I also had issues with copying the data. I made some modifications to copy_files_from_cloud.R to fix this.
    • Check if your version contains my fix in the function here.
      • If not, let me know and I will look into it further.
sebastiandig commented 1 year ago

Actually, after reviewing this, I think the location you set for the cloud directory may be wrong, but I have no way of knowing currently.

sebastiandig commented 1 year ago

Wait, it might be another issue altogether, relating to creating the project structure. Can you reply with the project structure? You can use fs::dir_tree(type = "directory")

sebastiandig commented 1 year ago

Also, can you show what files it ask to copy over?

7yl4r commented 1 year ago

Revisiting this now and Rstudio is not running any of the chunks. Maybe we can set up a meeting so we can work through this together? My schedule is mostly open: https://bit.ly/ty-calendar

sebastiandig commented 1 year ago

Hi Tylar, Let's meet tomorrow shortly after your meeting tomorrow a little after 2 pm. Send me an email when you can jump on.

sebastiandig commented 1 year ago

Hi @7yl4r,

I have updated the code significantly. Hopefully, you'll be able to use this now. Let me know if you would like to meet again about this to test it out and identify issues.