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 notes #34

Merged
merged 2 commits into from
Sep 23, 2022
Merged

Fix notes #34

merged 2 commits into from
Sep 23, 2022

Conversation

sophiemeakin
Copy link
Collaborator

@sophiemeakin sophiemeakin commented Sep 23, 2022

Very exciting PR fixing 2 notes flagged in devtools::check():

There are ::: calls to the package's namespace in its code. A package almost never needs to use ::: for its own objects: ‘mappings’

download_trust_data: no visible binding for global variable ‘data’
download_trust_data: no visible binding for global variable ‘nhs_region’
download_trust_data: no visible binding for global variable ‘org_code’
get_admissions: no visible binding for global variable ‘var_name’
get_admissions: no visible binding for global variable ‘data’
get_admissions: no visible binding for global variable ‘org_code’
get_admissions: no visible binding for global variable ‘value’
get_admissions: no visible binding for global variable ‘trust_code’
get_admissions: no visible binding for global variable ‘trust_name’
get_admissions: no visible binding for global variable ‘var’
get_admissions: no visible binding for global variable ‘p_trust’
get_admissions: no visible binding for global variable ‘geo_code’
get_admissions: no visible binding for global variable ‘geo_name’
get_admissions: no visible binding for global variable ‘new_adm’
get_names: no visible binding for global variable ‘trust_code’
get_names: no visible binding for global variable ‘trust_name’
get_names: no visible binding for global variable ‘geo_code’
get_names: no visible binding for global variable ‘geo_name’
get_names: no visible binding for global variable ‘p_trust’
get_names: no visible binding for global variable ‘p_geo’
load_mapping: no visible binding for global variable ‘map_source’
load_mapping: no visible binding for global variable ‘map_level’
summarise_mapping: no visible binding for global variable ‘trust_code’
summarise_mapping: no visible binding for global variable ‘trust_name’
summarise_mapping: no visible binding for global variable ‘geo_code’
summarise_mapping: no visible binding for global variable ‘geo_name’
summarise_mapping: no visible binding for global variable ‘p_trust’
summarise_mapping: no visible binding for global variable ‘p’
summarise_mapping: no visible binding for global variable ‘p_geo’
Undefined global functions or variables: data geo_code geo_name map_level map_source new_adm nhs_region org_code p p_geo p_trust trust_code trust_name value var var_name
Consider adding importFrom("stats", "var") importFrom("utils", "data") to your NAMESPACE file.

Note:
There are ::: calls to the package's namespace in its code. A package almost never needs to use ::: for its own objects: ‘mappings’
@sophiemeakin sophiemeakin merged commit 58576e7 into main Sep 23, 2022
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.

1 participant