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

Fix : Linkages for no visible bindings warnings #3442

Merged
merged 7 commits into from
Feb 20, 2025

Conversation

harshagr70
Copy link
Contributor

This PR addresses the following changes in the package:

Fixes a part of the issue #2758 : Resolved the issues related to "no visible bindings" warnings in the package linkages. All relevant variables have been correctly scoped and assigned, ensuring that no variables are left unreferenced or improperly bound.

Loading Environment Fix: Updated the logic for loading the output data to prevent conflicts with variables in the environment. Specifically, when no survivors are found in the initial output, the backup spinup file is now correctly loaded into a separate environment or with renamed variables to avoid overwriting existing data.

Reference Log Update: Updated the reference.log file to reflect these changes

These changes should resolve the issues previously encountered with missing or unreferenced bindings, improve the environment management during data loading, and maintain the integrity of the logging.

Rechecked for the remaining issues , if any by Rcmdcheck .

Copy link
Member

@infotroph infotroph left a comment

Choose a reason for hiding this comment

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

Nice work! Thank you.

# new enviroment for spin up data
linkages_env_spinup <- new.env()
spinup_file <- file.path(outdir, runid,list.files(file.path(outdir, runid))[grep(list.files(file.path(outdir, runid)),pattern='linkages')][1])
load(spinup_file, envir = linkages_env_spinup)
Copy link
Member

Choose a reason for hiding this comment

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

Thanks for pulling the file path out to a variable for a nice readability improvement!

@infotroph infotroph added this pull request to the merge queue Feb 20, 2025
Merged via the queue into PecanProject:develop with commit 9832559 Feb 20, 2025
17 of 23 checks passed
@harshagr70 harshagr70 deleted the GH-2758-fix-tidyverse branch February 20, 2025 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants