Skip to content

Commit 130742c

Browse files
committed
Removing depcreated tidyverse functions
1 parent aa1e2c2 commit 130742c

7 files changed

Lines changed: 14 additions & 35 deletions

File tree

.Rbuildignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@
99
.git\.
1010
^codecov\.yml$
1111
^\.github$
12+
.claude/*
13+
CLAUDE.md

.travis.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Package: useful
22
Type: Package
33
Title: A Collection of Handy, Useful Functions
44
Version: 1.2.7
5-
Date: 2023-10-31
5+
Date: 2026-02-25
66
Authors@R: c(
77
person(c("Jared", "P."), "Lander", email = "packages@jaredlander.com", role = c("cre", "aut")),
88
person("Nicholas", "Galasinao", email = "nicholas.galasinao@gmail.com", role = "ctb"),

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export(vplayout)
6969
import(ggplot2)
7070
importFrom(plyr,alply)
7171
importFrom(plyr,llply)
72+
importFrom(rlang,":=")
7273
importFrom(rlang,.data)
7374
importFrom(stats,as.formula)
7475
importFrom(stats,cmdscale)

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Version 1.2.4
1+
# Version 1.2.7
22
Using `autoplot` to plot `acf` objects.
33

44
# Version 1.2.4

R/kmeansPlotting.r

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ fortify.kmeans <- function(model, data=NULL, ...)
7272
#' @param xlab Label for the x-axis.
7373
#' @param ylab Label for the y-axis.
7474
#' @param \dots Not Used.
75+
#' @importFrom rlang :=
7576
#' @return A ggplot object
7677
#' @examples
7778
#'
@@ -93,10 +94,15 @@ plot.kmeans <-
9394
legend.position <- match.arg(legend.position)
9495

9596
# convert class to factor just in case it is not already
96-
if(!is.null(class)) toPlot[, class] <- factor(toPlot[, class])
97+
# if(!is.null(class)) toPlot[, class] <- factor(toPlot[, class])
98+
if(!is.null(rlang::enexpr(class)))
99+
{
100+
class <- rlang::ensym(class)
101+
dplyr::mutate(toPlot, {{class}} := factor({{class}}))
102+
}
97103

98104
ggplot(toPlot, aes(x=.data[['.x']], y=.data[['.y']], colour=.data[['.Cluster']])) +
99-
# geom_point(aes_string(shape='class'), size=size) +
105+
# geom_point(aes_string(shape='class'), size=size) +
100106
geom_point(aes(shape={{class}}), size=size) +
101107
scale_color_discrete("Cluster") +
102108
theme(legend.position=legend.position) +

man/plot.kmeans.Rd

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)