From d6923332057ebc9b8024762d729397621b21c25a Mon Sep 17 00:00:00 2001 From: Stefan Pascal Thoma Date: Wed, 27 Nov 2024 06:48:52 +0000 Subject: [PATCH 1/4] add link to template --- inst/template/template.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/inst/template/template.txt b/inst/template/template.txt index 2f830b68..6f246a9b 100644 --- a/inst/template/template.txt +++ b/inst/template/template.txt @@ -18,10 +18,16 @@ image: [IMG] ```{r setup, include=FALSE} long_slug <- [SLUG] # renv::use(lockfile = "renv.lock") +library(link) +link::auto() ``` +Please use the `link` package to automatically link packages and functions. +To link to a package (e.g. `dplyr`) simply wrap it in curly braces {dplyr}. +To link a function (e.g. `filter` from `dplyr`) simply write dpylr::filter(). +For more information check out {link}. From 1a5ed4f7a1b3e046d35bc744a640eb140fd38597 Mon Sep 17 00:00:00 2001 From: Stefan Pascal Thoma Date: Wed, 27 Nov 2024 06:53:19 +0000 Subject: [PATCH 2/4] fixed typo --- inst/template/template.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inst/template/template.txt b/inst/template/template.txt index 6f246a9b..75d2f9fb 100644 --- a/inst/template/template.txt +++ b/inst/template/template.txt @@ -26,7 +26,7 @@ link::auto() Please use the `link` package to automatically link packages and functions. To link to a package (e.g. `dplyr`) simply wrap it in curly braces {dplyr}. -To link a function (e.g. `filter` from `dplyr`) simply write dpylr::filter(). +To link a function (e.g. `filter` from `dplyr`) simply write dplyr::filter(). For more information check out {link}. From 8b971967e4bb9442147d07f66d9a70c4d9255138 Mon Sep 17 00:00:00 2001 From: Stefan Pascal Thoma Date: Wed, 27 Nov 2024 08:54:05 +0000 Subject: [PATCH 3/4] simplified text --- inst/template/template.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inst/template/template.txt b/inst/template/template.txt index 75d2f9fb..8e577cf9 100644 --- a/inst/template/template.txt +++ b/inst/template/template.txt @@ -24,9 +24,9 @@ link::auto() -Please use the `link` package to automatically link packages and functions. -To link to a package (e.g. `dplyr`) simply wrap it in curly braces {dplyr}. -To link a function (e.g. `filter` from `dplyr`) simply write dplyr::filter(). +Please use the {link} package to automatically link packages and functions. +To link to a package simply wrap it in curly braces: {dplyr}. +Link a function from a package like: dplyr::filter(). For more information check out {link}. From 358a961e4a47e5d983b9f5ef18c2e14aa6934391 Mon Sep 17 00:00:00 2001 From: Stefan Pascal Thoma Date: Wed, 27 Nov 2024 13:35:18 +0000 Subject: [PATCH 4/4] remove renv --- inst/template/template.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/inst/template/template.txt b/inst/template/template.txt index 8e577cf9..1c424b20 100644 --- a/inst/template/template.txt +++ b/inst/template/template.txt @@ -17,7 +17,6 @@ image: [IMG] ```{r setup, include=FALSE} long_slug <- [SLUG] -# renv::use(lockfile = "renv.lock") library(link) link::auto() ```