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

fixes #2804 | undeclared dependencies in DB package #2805

Merged
merged 25 commits into from Jul 15, 2021
Merged

fixes #2804 | undeclared dependencies in DB package #2805

merged 25 commits into from Jul 15, 2021

Conversation

moki1202
Copy link
Collaborator

No description provided.

Copy link
Member

@mdietze mdietze left a comment

Choose a reason for hiding this comment

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

This appears to be just a remove, not a move

You also need to remove the corresponding Rd and run make document to build the new Rd file in the correct location.

@moki1202
Copy link
Collaborator Author

@mdietze this PR is still incomplete. Would complete this in 2 mins.

@moki1202
Copy link
Collaborator Author

/document

@infotroph
Copy link
Member

/document

@moki1202
Copy link
Collaborator Author

/document

moki1202 and others added 2 commits June 22, 2021 14:35
moki1202 and others added 2 commits June 22, 2021 16:26
NEWS.md Outdated Show resolved Hide resolved
moki1202 and others added 2 commits June 24, 2021 16:25
Co-authored-by: Chris Black <chris@ckblack.org>
@moki1202 moki1202 changed the title fixes #2804 fixes #2804 | undeclared dependencies in DB package Jul 4, 2021
@mdietze
Copy link
Member

mdietze commented Jul 12, 2021

 Error: Please fix these and resubmit.
  R check of modules/meta.analysis returned new problems:
  Execution halted
  checking dependencies in R code ... WARNING: Missing or unexported object: 'PEcAn.DB::rename_jags_columns'
  checking DESCRIPTION meta-information ... NOTE: Authors@R field gives persons with no role: Mike Dietze Xiaohui Feng Dan  Wang Carl Davidson Rob Kooper Shawn Serbin Shashank Singh
  checking R code for possible problems ... NOTE: rename_jags_columns: no visible binding for global variable 'stat'
  checking R code for possible problems ... NOTE: rename_jags_columns: no visible binding for global variable 'n'
  checking R code for possible problems ... NOTE: rename_jags_columns: no visible binding for global variable 'trt_id'
  checking R code for possible problems ... NOTE: rename_jags_columns: no visible binding for global variable 'citation_id'

@moki1202
Copy link
Collaborator Author

@mdietze I ran R CMD checks and was unable to replicate these warnings, don't know why...

@mdietze
Copy link
Member

mdietze commented Jul 12, 2021

@moki1202 unfortunately even if you can't replicate the error locally you still need to push the fixes.

The first error is coming from the reference to PEcAn.DB::PEcAn.DB::rename_jags_columns in the jagify function.

The second should be resolvable by assigning roles to the other authors

The no visible binding errors look like they're coming from the use of transform in PEcAn.DB::rename_jags_columns. I don't know if the tidyverse .data trick will work here; you might need to define these variables as NULL at the top of the function. See this blog for details https://www.r-bloggers.com/2019/08/no-visible-binding-for-global-variable/

@infotroph
Copy link
Member

infotroph commented Jul 13, 2021

Missing or unexported object: 'PEcAn.DB::rename_jags_columns'

PEcAn.DB::rename_jags_columns -> rename_jags_columns (no :: needed because it's now defined in the same package we call it from)

@moki1202
Copy link
Collaborator Author

understood

@mdietze mdietze merged commit 0603112 into PecanProject:develop Jul 15, 2021
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

3 participants