From a403353aa17d6cd9a5bcf719b770c77d39abd822 Mon Sep 17 00:00:00 2001 From: "robocop@imac" <robo@imac.T5> Date: Tue, 25 Aug 2020 14:42:43 +0300 Subject: [PATCH] print instruction on how to migrate to new repo --- README.md | 7 +------ source.R | 6 +++--- theme_dc.plot.L.45.nolegend.R | 9 ++++++--- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 7e3cb7f..7beb30c 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,4 @@ Development of the script has migrated to https://github.com/dchakro/ -replace the line sourcing this file with the following in your code. - -```R -source("https://raw.githubusercontent.com/dchakro/ggplot_themes/master/RSCRIPT.R") -``` - +Instructions on how to migrate to the new source are present in individual files. diff --git a/source.R b/source.R index bdc2fea..64f2fcd 100644 --- a/source.R +++ b/source.R @@ -1,5 +1,5 @@ # Development of the script has migrated to https://github.com/dchakro/ # replace the line sourcing this file with the following in your code. -print("This function has moved to: https://github.com/dchakro/ggplot_themes") -print("Correct way to source the function is:") -print("source("https://raw.githubusercontent.com/dchakro/ggplot_themes/master/source.R")") \ No newline at end of file +warning("This function has moved to: https://github.com/dchakro/ggplot_themes") +message("Correct way to source the function is:") +print("source("https://raw.githubusercontent.com/dchakro/ggplot_themes/master/source.R")") diff --git a/theme_dc.plot.L.45.nolegend.R b/theme_dc.plot.L.45.nolegend.R index 3903628..c9e26d3 100644 --- a/theme_dc.plot.L.45.nolegend.R +++ b/theme_dc.plot.L.45.nolegend.R @@ -1,5 +1,8 @@ # Development of the script has migrated to https://github.com/dchakro/ # replace the line sourcing this file with the following in your code. -print("This function has moved to: https://github.com/dchakro/ggplot_themes") -print("Correct way to source the function is:") -print("source("https://raw.githubusercontent.com/dchakro/ggplot_themes/master/theme_dc.plot.L.45.nolegend.R")") \ No newline at end of file +warning("This function has moved to: https://github.com/dchakro/ggplot_themes") +message("Correct way to source the function is:") +print("source('https://raw.githubusercontent.com/dchakro/ggplot_themes/master/theme_dc.plot.L.45.nolegend.R')") + +warning("Importing to maintain compatibility, but please edit your code to the new source.") +source("https://raw.githubusercontent.com/dchakro/ggplot_themes/master/theme_dc.plot.L.45.nolegend.R") -- GitLab