Skip to content

Commit 9f36dc7

Browse files
fix printing bug (#115)
1 parent c03e4fb commit 9f36dc7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
* Added `show_query()` method for orbital objects. (#106)
1010

11+
* Fixed printing bug where output would get malformed if coefficients had similarities. (#115)
12+
1113
# orbital 0.3.1
1214

1315
* Fixed bug where PCA steps didn't work if they were trained with more than 99 predictors. (#82)

R/orbital.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ pretty_print <- function(x, digits = 7) {
113113
new_values <- unlist(new_values, use.names = FALSE)
114114

115115
for (i in seq_along(old_values)) {
116-
x <- gsub(old_values[i], new_values[i], x)
116+
x <- sub(old_values[i], new_values[i], x)
117117
}
118118

119119
x

0 commit comments

Comments
 (0)