diff --git a/CONTRIBUTING.html b/CONTRIBUTING.html index d572a610..85ccadc7 100644 --- a/CONTRIBUTING.html +++ b/CONTRIBUTING.html @@ -58,19 +58,43 @@
-

This outlines how to propose a change to fusen. For more detailed info about contributing to this, and other tidyverse packages, please see the development contributing guide.

+

This outlines how to propose a change to fusen.

All contribution welcomed

We are open to any contribution, from typos to new features. We will guide you throughout the process and make you in a safe position to contribute, whatever is your level in R programming.

-

{fusen} partly uses {fusen} with flat files

-

Multiple files of the package in “R/”, “tests/” and “vignettes/” are issued from a flat file. When this is the case, you will see this Warning on top of the file:

-
-

“# WARNING - Generated by {fusen} from dev/flat_xxx.Rmd: do not edit by hand”

-
-

This means that you will need to make your changes in the corresponding flat file, and then inflate() this same flat file. We recommend using fusen::inflate_all() directly so that it takes into account any modification.

-

This way of developing is what {fusen} is for. We assume that if you contribute to {fusen}, you may already use it. If this is not the case, you can read the Readme of the project on GitHub.

+

Use of ‘fusen’ to build the code base and documentation

+

Package ‘fusen’ is used to build the code base and documentation of ‘fusen’. ‘fusen’ is a package that provides a framework for building R packages from a Rmarkdown file (or Quarto file). See documentation of ‘fusen’ for more details: https://thinkr-open.github.io/fusen

+
+
+

What if I do not understand how to use ‘fusen’ ?

+

We are here to help. If you know how to modify a package without ‘fusen’, contribute as you would do normally.
+Forget the flat files for a moment. A ‘fusen’ package is still a classical package if you remove the “dev/” directory. There is no difference.

+

Open a Pull Request and we will help you to integrate your contribution in the ‘fusen’ framework.

+
+
+

Some tips to contribute with ‘fusen’

+
+

Modify documentation

+
  • You will find the roxygen skeleton in the corresponding function chunk
  • +
  • Text of the vignette is generally the text between chunk of the flat file
  • +
+
+

Modify of a function

+

We recommend a test driven development approach:

+
  • Write or modify a unit test in the corresponding test chunk of the function
  • +
  • Modify the code of the function in the corresponding function chunk
  • +
  • Run the ‘inflate’ command at the bottom of the flat file
  • +
  • Run devtools::test() to check if the test is passing
  • +

To avoid multiple inflates, you can run the code locally

+
  • Instead of inflating, run fusen::load_flat_functions() to load the function of the current flat file in your global environment
  • +
  • Run your tests line by line from the test chunk
  • +
  • You can also use your favorite debuging tools
  • +

Fixing typos

diff --git a/apple-touch-icon-120x120.png b/apple-touch-icon-120x120.png index e040d8e2..2c90a220 100644 Binary files a/apple-touch-icon-120x120.png and b/apple-touch-icon-120x120.png differ diff --git a/apple-touch-icon-152x152.png b/apple-touch-icon-152x152.png index 78cfb64b..b7608e37 100644 Binary files a/apple-touch-icon-152x152.png and b/apple-touch-icon-152x152.png differ diff --git a/apple-touch-icon-180x180.png b/apple-touch-icon-180x180.png index b35172fa..493c7a73 100644 Binary files a/apple-touch-icon-180x180.png and b/apple-touch-icon-180x180.png differ diff --git a/apple-touch-icon-60x60.png b/apple-touch-icon-60x60.png index 58ed6102..048ba24b 100644 Binary files a/apple-touch-icon-60x60.png and b/apple-touch-icon-60x60.png differ diff --git a/apple-touch-icon-76x76.png b/apple-touch-icon-76x76.png index c93c24de..c722a492 100644 Binary files a/apple-touch-icon-76x76.png and b/apple-touch-icon-76x76.png differ diff --git a/apple-touch-icon.png b/apple-touch-icon.png index 404d2c6d..65d49d7c 100644 Binary files a/apple-touch-icon.png and b/apple-touch-icon.png differ diff --git a/favicon-16x16.png b/favicon-16x16.png index f57a24f1..a724d5fa 100644 Binary files a/favicon-16x16.png and b/favicon-16x16.png differ diff --git a/favicon-32x32.png b/favicon-32x32.png index 60200d36..91b0870f 100644 Binary files a/favicon-32x32.png and b/favicon-32x32.png differ diff --git a/index.html b/index.html index d4e041eb..dcb48648 100644 --- a/index.html +++ b/index.html @@ -273,6 +273,13 @@

Why is this package named {fusen} ?

+

Contributing +

+

‘fusen’ is partially built using ‘fusen’ itself.
+If you’re not sure on how to contribute using ‘fusen’, you can contribute as for any other package: a package made with the help of ‘fusen’ does have exactly the same structure as a classical package.
+Knowing that, if you want to contribute to ‘fusen’, you can follow the instructions in the CONTRIBUTING.md file.

+
+

Acknowledgments