microsoft / sqlmlutils

Utility functions for easier usage of SQL Server Machine Learning Services
Other
32 stars 33 forks source link

Fix R Unit Tests and Invalid Cursor State Occurrences #100

Closed seantleonard closed 2 years ago

seantleonard commented 2 years ago

Why is this change being made?

This change enables compatibility with R 4.2, which consequently introduces support for SQL Server 2022 starting with CTP2.0. Additionally, the fix for certain queries experiencing the error Invalid cursor state is included.

What does this change do?

How is this change tested?

References

[1] - Changes in R4.2

Calling && or || with either argument of length greater than one now gives a warning (which it is intended will become an error).

Calling if() or while() with a condition of length greater than one gives an error rather than a warning. Consequently, environment variable _R_CHECK_LENGTH_1CONDITION no longer has any effect.

seantleonard commented 2 years ago

11 commits were just rewritten to ensure they were all signed, to facilitate merging. No content changes occurred.