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

feat: load table linkfile #123

Merged
merged 3 commits into from
May 16, 2024
Merged

feat: load table linkfile #123

merged 3 commits into from
May 16, 2024

Conversation

marikaris
Copy link
Contributor

No description provided.

@marikaris marikaris changed the title Feat/load table linkfile feat: load table linkfile May 13, 2024
Copy link

codecov bot commented May 13, 2024

Codecov Report

Attention: Patch coverage is 86.36364% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 85.2%. Comparing base (2dec633) to head (116dddf).
Report is 5 commits behind head on master.

Files Patch % Lines
R/table.R 86.6% 2 Missing ⚠️
R/object.R 85.7% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           master    #123     +/-   ##
========================================
- Coverage    85.2%   85.2%   -0.1%     
========================================
  Files           9       9             
  Lines         502     522     +20     
========================================
+ Hits          428     445     +17     
- Misses         74      77      +3     

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

@marikaris marikaris requested a review from timcadman May 13, 2024 08:42
R/table.R Outdated
#' Helper function to get the contents of a linkfile
#'
#' @param project projectname where the linkfile is stored
#' @param objectname folder/name of linkfile
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be object_name and not object_name

@@ -132,7 +132,17 @@ armadillo.copy_table <- # nolint
#'
#' @export
armadillo.load_table <- function(project, folder, name) { # nolint
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tested this and it works. However it's not very generic - e.g. if we want to expand this to loading other types of object. I'm happy to approve for now, but maybe next time we want to extend this to other object types we should think about refactoring so we can more easily add support for other types?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's valid. We do however really have to think about how to make it more generic. Possibly pass a loadfunction to it then, don't know. Maybe we can create a story for it? I think for now this is good enough, but I do agree that it's a bit limited.

@timcadman
Copy link
Contributor

Closes issue #111

@marikaris marikaris merged commit 7b69d28 into master May 16, 2024
4 checks passed
@marikaris marikaris deleted the feat/load-table-linkfile branch May 16, 2024 06:06
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.

None yet

2 participants