Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://doi.org/10.5281/zenodo.7752811
04 June 2025, 09:45:08 UTC
  • Code
  • Branches (0)
  • Releases (1)
  • Visits
    • Branches
    • Releases
      • 1
      • 1
    • f014182
    • /
    • PIK-LPJmL-lpjmlkit-6fbb991
    • /
    • Makefile
    Raw File Download

    To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
    Select below a type of object currently browsed in order to display its associated SWHID and permalink.

    • content
    • directory
    • snapshot
    • release
    origin badgecontent badge
    swh:1:cnt:38e857f34b7876df4a1c0aba3e5f0bd453acc5c2
    origin badgedirectory badge
    swh:1:dir:f445daac4908d69abe57f9722984a542791e26cc
    origin badgesnapshot badge
    swh:1:snp:9e660b31b6e0d7e183a9e0a2681b965fd466b900
    origin badgerelease badge
    swh:1:rel:f4bdd73f2005a9f39d899ef1ef73b3188b2a75aa

    This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
    Select below a type of object currently browsed in order to generate citations for them.

    • content
    • directory
    • snapshot
    • release
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    Makefile
    .PHONY: help build check test lint lint-all format format-all install docs
    .DEFAULT_GOAL = help
    
    # extracts the help text and formats it nicely
    HELP_PARSING = 'm <- readLines("Makefile");\
    				m <- grep("\#\#", m, value=TRUE);\
    				command <- sub("^([^ ]*) *\#\#(.*)", "\\1", m);\
    				help <- sub("^([^ ]*) *\#\#(.*)", "\\2", m);\
    				cat(sprintf("%-8s%s", command, help), sep="\n")'
    
    help:           ## Show this help.
    	@Rscript -e $(HELP_PARSING)
    
    build:          ## Build the package using lucode2::buildLibrary(). You can pass the
                    ## updateType with 'make build u=3'
    	Rscript -e 'lucode2::buildLibrary(updateType = "$(u)")'
    
    check:          ## Build documentation and vignettes, run testthat tests,
                    ## and check if code etiquette is followed using lucode2::check().
    	Rscript -e 'lucode2::check()'
    
    test:           ## Run testthat tests
    	Rscript -e 'devtools::test(show_report = TRUE)'
    
    lint:           ## Check if code etiquette is followed using lucode2::lint().
                    ## Only checks files you changed.
    	Rscript -e 'lucode2::lint()'
    
    lint-all:       ## Check if code etiquette is followed using lucode2::lint().
                    ## Checks all files.
    	Rscript -e 'lucode2::lint(".")'
    
    format:         ## Apply auto-formatting to changed files and lint afterwards.
    	Rscript -e 'lucode2::autoFormat()'
    
    format-all:     ## Apply auto-formatting to all files and lint afterwards.
    	Rscript -e 'lucode2::autoFormat(files=list.files("./R", full.names = TRUE, pattern = "\\.R"))'
    
    install:        ## Install the package locally via devtools::install() after
                    ## generating NAMESPACE and docs (see docs target).
    	Rscript -e 'roxygen2::roxygenize(); devtools::install(upgrade = "never")'
    
    docs:           ## Generate the package documentation (man/*.Rd files) and
                    ## NAMESPACE via roxygen2::roxygenize(), view the generated
                    ## documentation with `?package::function`.
    	Rscript -e 'roxygen2::roxygenize()'
    

    back to top

    Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
    The source code of Software Heritage itself is available on our development forge.
    The source code files archived by Software Heritage are available under their own copyright and licenses.
    Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API