Changelog
Waypoint 1.3.0
Improve documentation of
[<-.coordsreplacement operator andvalidate()examples (#160).Remove abstruse
convert_switch<>()function call fromas_coords()andas_waypoints(#159).Rectify erroneous “Invalid coords!” warning after revalidating valid
coords(#158).Simplify
validated()using bitwise return value and rename astemplate<NumericVector_or_DataFrame T>check_logical_attr(T , const char*)(#157).Protect base class functions without public interface (#156).
Replace
Validatorfunctor class with lambda in new member functionCoordbase::validate0()(#155).Replace
Convertfunctor class with lambdas selected usingif constexpr … elsestatement in new member functionCoordbase::convert0()(#154).if constexprstatements within templated functions (#153).validate()as pure virtual function inCoordbase(#152).Replace
Formatfunctor class with lambdas selected usingif constexpr … elsestatement in new member functionCoordbase::format0()(#149, #153).Abstract replicated code in
WayPoint::format()to a single functionWayPoint::format2()(#146).FormatLL<>functors replaced with lambdas inCoord::format()andWayPoint::format()(#145).Replace
static_assertstatements in templates with concepts (#144).Remove redundant code from
as_waypoints(DataFrame, int = 1)(#143).Simplify
fmt::formatter<CoordType>::format(CoordType, format_context&)(#142).Improve
get_coordtype(int i)(#141, #142).
Waypoint 1.2.1
CRAN release: 2025-05-31
S3
print()methods for"coords"and"waypoints"now employ the null coalescing operator%||%as intended (#140).S3
print()method for"waypoints"objects now has an explicitfmtargument and correct formatting of the “Latitude … Longitude” headings when this argument is used (#139).New S3 extract
`[`(<coords>)and replace`[<-`(<coords>)methods for"coords"objects (#135).S3 extract
`[`(<coords>)method allows simpler code inprint.coords()andreview.coords()S3 methods (#136).Corrected
as_waypoints()andformat()documentation (#133, #134, #137).Note added to documentation for
convert().
Waypoint 1.2.0
CRAN release: 2025-05-18
Class and function forward declarations moved to header file CoordBase.h (#113).
S3
format()methods documented more comprehensively (#108).Correct error message in
get_coordtype(const int)(#111).Code improved in
format_switch(const T& t)(#112, #116).Remove redundant
Coordbase::get_ff()(#110).Use C++ {fmt} library to ensure formatting and printing of correct widths when names contain extended ASCII codes (#109, #117).
S3
format()andprint()methods for"coords"and"waypoints"objects now have afmtargument enabling changing the formatted/printed coordinate format (#129, #130, #131).
Waypoint 1.1.1
CRAN release: 2025-04-04
S3
format()method for"waypoints"objectsusenamesargument fixed.S3
print()methods for"coords"and"waypoints"objects print widths correctly whenmaxargument /getOption("max.print")is exceeded.S3
validate()methods for"coords"and"waypoints"objects now haveforceargument signifying whether to perform full de novo revalidation or simply check existing"valid","validlat"and"validlon"attributes, essentially to enable the fix to S3print()methods above.