Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linking NGSapFlux as a submodule #1

Open
serbinsh opened this issue Feb 1, 2023 · 3 comments
Open

Linking NGSapFlux as a submodule #1

serbinsh opened this issue Feb 1, 2023 · 3 comments
Assignees

Comments

@serbinsh
Copy link
Member

serbinsh commented Feb 1, 2023

Since we want to make a small dedicated R package for processing our NGSapFlux data, I created this new repo and have setup the original NGSapFlux repo as a submodule to this R package that links to inst/NGSapFlux

The point is so we can keep that repo dedicated to the tech details related to the actual hardware and Campbell programs and this repo can be dedicated to the actual data processing. However we can keep the test data in the original NGSapFlux repo and then still use that if you do a git clone --recursive. We can write tests and examples that can use the test data or we could just link to that data straight via a URL

I wil provide more details but to update to the latest version of the submodule in this repo you would do
git submodule update --remote --merge

git submodule update --remote

before committing the changes to this R package. CC @neo0351 @DavidsonKen

@serbinsh serbinsh self-assigned this Feb 1, 2023
@serbinsh
Copy link
Member Author

serbinsh commented Feb 2, 2023

Note: with gh its a little stranger for pulling the submodule

gh repo clone TESTgroup-BNL/NGSapFlux_r -- --recurse-submodules

that extra -- is necessary for some reason

@serbinsh
Copy link
Member Author

serbinsh commented Feb 2, 2023

130-199-9-224:GitHub sserbin$ gh repo clone TESTgroup-BNL/NGSapFlux_r -- --recursive
Cloning into 'NGSapFlux_r'...
remote: Enumerating objects: 53, done.
remote: Counting objects: 100% (53/53), done.
remote: Compressing objects: 100% (33/33), done.
remote: Total 53 (delta 19), reused 45 (delta 15), pack-reused 0
Receiving objects: 100% (53/53), 29.31 KiB | 5.86 MiB/s, done.
Resolving deltas: 100% (19/19), done.
Submodule 'inst/NGSapFlux' (https://github.com/TESTgroup-BNL/NGSapFlux) registered for path 'inst/NGSapFlux'
Cloning into '/Users/sserbin/Data/GitHub/NGSapFlux_r/inst/NGSapFlux'...
remote: Enumerating objects: 155, done.
remote: Counting objects: 100% (155/155), done.
remote: Compressing objects: 100% (111/111), done.
remote: Total 155 (delta 47), reused 124 (delta 31), pack-reused 0
Receiving objects: 100% (155/155), 9.51 MiB | 15.13 MiB/s, done.
Resolving deltas: 100% (47/47), done.
Submodule path 'inst/NGSapFlux': checked out 'eda43be29002269b280c3949c16babae9a6214ad'

@serbinsh
Copy link
Member Author

git submodule update --init --recursive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant