Question: I am newbie in GIT. When I try to commit some files and it gives me the following warnings: 

> 
> modified content, untracked content
> 
> 
> 

My folder structure like:

```
.git

   ---- files

   ----- another-folder

   ---- .git

   ---- files

----- another-folder

---- .git

 ---- files

```

I was downloading git repository for learning purpose and move all downloading files into my repository. Looking forward to the answer. Thanks in advance.

Answer: 
If you are starting from just the list `foo = list(foo1 = sum, foo2 = mean)`, then it's not possible. The call to `list()` will evaluate the parameters returning the values that the variables `sum` and `mean` point to but it will not remember those variable names. Functions don't have names in R. But functions can be assigned to variables. However in R functions can live without names as well. 

You've basically just created a named list of function. That might also look like this

```
foo = list(foo1 = function(x) sum(x+1), 
    foo2 = function(x) mean(x+1))

```

Here we also have functions, but these functions don't have "names" other than the names you gave to them in the list.

This only chance you have of making this work is using something other than `list()` when creating foo in the first place. Or having them actually explicitly call `list()` in the function call (which isn't very practical).
You can use a list with the functions as strings

```
foo <- list(foo1 = "mean", foo2 = "sum")

foo
$foo1
[1] "mean"

$foo2
[1] "sum"

get(foo[[1]])(1:10)
[1] 5.5
get(foo[[2]])(1:10)
[1] 55

```

Or use the `rlang` package and do something like

```
library(rlang)
foo <- quos(foo1 = mean, foo2 = sum)

getNames <- function(x) {
+   sapply(x, function(x) x[[2]])
+ }

getNames(foo)
$foo1
mean

$foo2
sum

eval_tidy(foo[[1]])(1:10)
[1] 5.5
eval_tidy(foo[[2]])(1:10)
[1] 55

```

This also works with non named functions

```
foo <- quos(foo1 = function(x) sum(x + 1), foo2 = sum)
getNames(foo)
$foo1
function(x) sum(x + 1)

$foo2
sum

eval_tidy(foo[[1]])(1:10)
[1] 65

```