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

Clean depracated functions and unit tests #331

Merged
merged 33 commits into from
Jul 12, 2021

Conversation

GegznaV
Copy link
Collaborator

@GegznaV GegznaV commented Jul 10, 2021

I create this PR of the @cbeleites branch so that we could discuss the changes made.

Closes #326
Related to #330, r-hyperspec/r-hyperspec.github.io#17

In addition to updates by @cbeleites, I:

  • fixed some lines of code to pass R CMD check,
  • updated several more unit tests to avoid warnings due to deprecation messages,
  • updated the style in some functions (did it here as I wanted to avoid conflicts with other PRs by me).

cbeleites and others added 14 commits May 31, 2021 20:50
unit test should only check for deprecation message
unit test should only check for deprecation message
Merge branch 'bugfix/321-unit-tests-failing-R-release' of github.com:cbeleites/hyperSpec into bugfix/321-unit-tests-failing-R-release

# Conflicts:
#	hyperSpec/R/DEPRECATED-read.txt.Witec.R
Merge branch 'develop' into bugfix/321-unit-tests-failing-R-release

# Conflicts:
#	hyperSpec/R/DEPRECATED-spc_fit_poly.R
#	hyperSpec/R/DEPRECATED-spc_rubberband.R
@GegznaV
Copy link
Collaborator Author

GegznaV commented Jul 10, 2021

I added some commits to this PR that are related to #330 (style of function description titles).

@GegznaV
Copy link
Collaborator Author

GegznaV commented Jul 11, 2021

After updates in unit tests, there are no warnings related to the function deprecation:
image

So I think this PR is ready to be merged. And if some new improvements are needed, they can be added as a new PR.
What do you think @cbeleites?

@GegznaV GegznaV marked this pull request as ready for review July 11, 2021 00:24
GegznaV added 3 commits July 11, 2021 03:43
...in order not to lose changes due to error that occurred while updating from  `develop` previously.
Copy link
Owner

@cbeleites cbeleites left a comment

Choose a reason for hiding this comment

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

This is an intermediate stage of deprecating lots of functions, a) to rename or b) to move them into separate packages. Work is not complete, but it's time to merge this into develop to avoid parallel development.

@cbeleites cbeleites merged commit a5eee67 into develop Jul 12, 2021
@cbeleites cbeleites deleted the bugfix/321-unit-tests-failing-R-release branch July 12, 2021 13:06
@GegznaV
Copy link
Collaborator Author

GegznaV commented Jul 12, 2021

Thanks for merging, @cbeleites

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.

Functions moved to hySpc.read.jdx
2 participants