-
Notifications
You must be signed in to change notification settings - Fork 839
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
Address locked binding issue #309
Conversation
Signed-off-by: milevavantuyl <mvantuyl@wellesley.edu>
e26f473
to
60cdda8
Compare
Signed-off-by: milevavantuyl <mvantuyl@wellesley.edu>
aif360/aif360-r/README.Rmd
Outdated
@@ -116,6 +116,8 @@ load_aif360_lib() | |||
load_aif360_lib() | |||
``` | |||
|
|||
If you get an error: `cannot change value of locked binding`, please restart the R session and run `load_aif360_lib()` exactly once. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add function to load the library.
Signed-off-by: milevavantuyl <mvantuyl@wellesley.edu>
aif360/aif360-r/R/import.R
Outdated
lockBinding("post_algo", e) | ||
lockBinding("tf", e) | ||
} else { | ||
message(paste0(c("The aif360 functions have already been loaded:", bindings), sep = " ")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two suggestions.
- Let's not display all the functions as it is not required for the users
- Expand the message to something like
The aif360 functions have already been loaded. You can begin using the package
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we update the comments?
Signed-off-by: milevavantuyl <mvantuyl@wellesley.edu>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Address locked binding issue
Updated README instructions and code for loading aif360 functions to address issue #298 about locked binding