Skip to content

atime_versions() works with package in sub-dir of git repo#80

Merged
tdhock merged 12 commits intomainfrom
pkg-subdir
Apr 28, 2025
Merged

atime_versions() works with package in sub-dir of git repo#80
tdhock merged 12 commits intomainfrom
pkg-subdir

Conversation

@tdhock
Copy link
Copy Markdown
Owner

@tdhock tdhock commented Apr 26, 2025

Closes #79

example code:

remotes::install_github("tdhock/atime@pkg-subdir")
gdir <- tempfile()
dir.create(gdir)
git2r::clone("https://github.com/tdhock/grates", gdir)
glist <- atime::atime_versions(
  file.path(gdir,"pkg"),
  current = "1aae646888dcedb128c9076d9bd53fcb4075dcda",
  old     = "51056b9c4363797023da4572bde07e345ce57d9c",
  setup   = date_vec <- rep(Sys.Date(), N),
  expr    = grates::as_yearmonth(date_vec))
plot(glist)

I see this result
image

@TimTaylor please review. does it work for you too?

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 26, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 87.50000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 79.65%. Comparing base (6ba1cfe) to head (03010be).
Report is 41 commits behind head on main.

Files with missing lines Patch % Lines
R/versions.R 87.50% 2 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #80      +/-   ##
==========================================
+ Coverage   79.31%   79.65%   +0.33%     
==========================================
  Files           5        5              
  Lines         846      865      +19     
==========================================
+ Hits          671      689      +18     
- Misses        175      176       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@TimTaylor
Copy link
Copy Markdown

Works a treat. Thank you!

@tdhock
Copy link
Copy Markdown
Owner Author

tdhock commented Apr 27, 2025

great!

@tdhock tdhock merged commit a293d4b into main Apr 28, 2025
6 checks passed
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

Successfully merging this pull request may close these issues.

working git repositories with package not at the top level

3 participants