Repository: conda/conda-build

Issue:
[R] CRAN recipes raise linter warning
Migrated  from https://github.com/bgruening/conda_r_skeleton_helper/issues/42.

### Actual Behavior

Recipe for an R package on CRAN, generated with `run.R` from https://github.com/bgruening/conda_r_skeleton_helper, raises a `conda-forge-linter` note:

![image](https://user-images.githubusercontent.com/7608904/80316415-4be6a280-87c3-11ea-89df-c2946a47f229.png)

### Expected Behavior

Automatically-generated recipe should pass all automated checks when submitted to https://github.com/conda-forge/staged-recipes.

### Steps to Reproduce

1. Clone https://github.com/bgruening/conda_r_skeleton_helper
2. Put `r-uptasticsearch` in `packages.txt`
3. Run `Rscript run.R`
4. Submit generated recipe in a pull request to `staged-recipes`

I did this here: https://github.com/conda-forge/staged-recipes/pull/11382

##### `Output of conda info`
<!-- Between the ticks below, paste the output of 'conda info' -->
```
     active environment : None
       user config file : /Users/jlamb/.condarc
 populated config files : /Users/jlamb/.condarc
          conda version : 4.8.3
    conda-build version : 3.19.2
         python version : 3.6.10.final.0
       virtual packages : __osx=10.14.6
       base environment : /Users/jlamb/miniconda3  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/osx-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/osx-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /Users/jlamb/miniconda3/pkgs
                          /Users/jlamb/.conda/pkgs
       envs directories : /Users/jlamb/miniconda3/envs
                          /Users/jlamb/.conda/envs
               platform : osx-64
             user-agent : conda/4.8.3 requests/2.22.0 CPython/3.6.10 Darwin/18.7.0 OSX/10.14.6
                UID:GID : 501:20
             netrc file : None
           offline mode : False
```




Discussion:

Resolving patch:
diff --git a/conda_build/skeletons/cran.py b/conda_build/skeletons/cran.py
--- a/conda_build/skeletons/cran.py
+++ b/conda_build/skeletons/cran.py
@@ -1291,31 +1291,31 @@ def skeletonize(in_packages, output_dir=".", output_suffix="", add_maintainer=No
                     # deps.append("{indent}{{{{native}}}}extsoft     {sel}".format(
                     #     indent=INDENT, sel=sel_src_and_win))
                 if need_autotools or need_make or need_git:
-                    deps.append("{indent}{{{{posix}}}}filesystem      {sel}".format(
+                    deps.append("{indent}{{{{ posix }}}}filesystem      {sel}".format(
                         indent=INDENT, sel=sel_src_and_win))
                 if need_git:
-                    deps.append("{indent}{{{{posix}}}}git".format(indent=INDENT))
+                    deps.append("{indent}{{{{ posix }}}}git".format(indent=INDENT))
                 if need_autotools:
-                    deps.append("{indent}{{{{posix}}}}sed             {sel}".format(
+                    deps.append("{indent}{{{{ posix }}}}sed             {sel}".format(
                         indent=INDENT, sel=sel_src_and_win))
-                    deps.append("{indent}{{{{posix}}}}grep            {sel}".format(
+                    deps.append("{indent}{{{{ posix }}}}grep            {sel}".format(
                         indent=INDENT, sel=sel_src_and_win))
-                    deps.append("{indent}{{{{posix}}}}autoconf        {sel}".format(
+                    deps.append("{indent}{{{{ posix }}}}autoconf        {sel}".format(
                         indent=INDENT, sel=sel_src))
-                    deps.append("{indent}{{{{posix}}}}automake        {sel}".format(
+                    deps.append("{indent}{{{{ posix }}}}automake        {sel}".format(
                         indent=INDENT, sel=sel_src_not_win))
-                    deps.append("{indent}{{{{posix}}}}automake-wrapper{sel}".format(
+                    deps.append("{indent}{{{{ posix }}}}automake-wrapper{sel}".format(
                         indent=INDENT, sel=sel_src_and_win))
-                    deps.append("{indent}{{{{posix}}}}pkg-config".format(indent=INDENT))
+                    deps.append("{indent}{{{{ posix }}}}pkg-config".format(indent=INDENT))
                 if need_make:
-                    deps.append("{indent}{{{{posix}}}}make            {sel}".format(
+                    deps.append("{indent}{{{{ posix }}}}make            {sel}".format(
                         indent=INDENT, sel=sel_src))
                     if not need_autotools:
-                        deps.append("{indent}{{{{posix}}}}sed             {sel}".format(
+                        deps.append("{indent}{{{{ posix }}}}sed             {sel}".format(
                             indent=INDENT, sel=sel_src_and_win))
-                    deps.append("{indent}{{{{posix}}}}coreutils       {sel}".format(
+                    deps.append("{indent}{{{{ posix }}}}coreutils       {sel}".format(
                         indent=INDENT, sel=sel_src_and_win))
-                deps.append("{indent}{{{{posix}}}}zip             {sel}".format(
+                deps.append("{indent}{{{{ posix }}}}zip             {sel}".format(
                     indent=INDENT, sel=sel_src_and_win))
             elif dep_type == 'run':
                 if need_c or need_cxx or need_f:


Test patch: