From fa6bc9759d538735ecd60b3b799e7f3db26b227a Mon Sep 17 00:00:00 2001
From: unknown <olivier.delaigue@ANPI1430.antony.irstea.priv>
Date: Wed, 7 Dec 2016 14:37:30 +0100
Subject: [PATCH] add an onLoad action to print the package references when
 loading airGR

---
 R/.onLoad | 4 ++++
 R/Utils.R | 3 +++
 2 files changed, 7 insertions(+)
 create mode 100644 R/.onLoad
 create mode 100644 R/Utils.R

diff --git a/R/.onLoad b/R/.onLoad
new file mode 100644
index 00000000..8f8fdbe7
--- /dev/null
+++ b/R/.onLoad
@@ -0,0 +1,4 @@
+.onLoad <- function(libname, pkgname){
+citation("airGR")
+citation("airGRscholar")
+}
diff --git a/R/Utils.R b/R/Utils.R
new file mode 100644
index 00000000..56cdd51a
--- /dev/null
+++ b/R/Utils.R
@@ -0,0 +1,3 @@
+.onLoad <- function(libname, pkgname){
+  print(citation("airGR"))
+}
\ No newline at end of file
-- 
GitLab