diff --git a/README.md b/README.md index 7e3cb7f3556fd3548fd7d8ad950752ab4c0728fc..7beb30ce0fd70b316f7f4510ebb2b4c5c2e0fad2 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 bdc2fea93c4f4d772a758b3d351d60b039b11241..64f2fcd9538da6f3e8685c66ecf6287873917de9 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 3903628ce13f8c98bea49e5744ab620bff9e7689..c9e26d33cd634f6893b0eb756aa1ac4e15e746b3 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")