Re: [PATCH 2/2] t4018: add two userdiff tests for R language

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, May 25, 2025 at 5:03 PM Rodrigo Carvalho <rodrigorsdc@xxxxxxxxx> wrote:
> This patch adds two userdiff tests for R programming language
> files. These files define a simple function, with and without
> indentation.
>
> Signed-off-by: Rodrigo Carvalho <rodrigorsdc@xxxxxxxxx>
> ---
> diff --git a/t/t4018/r-indent b/t/t4018/r-indent
> @@ -0,0 +1,6 @@
> +RIGHT <- function(a, b) {
> +    c = mean(a, b)
> +    d = c + 2
> +    ChangeMe()
> +    return (d)
> +}

Although nontraditional, do we care that some people define functions
using `=` rather than `<-`?

    foo = function(x) {...}





[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux