You need to understand the difference between a function returning a value and printing that value. By default, the function returns the value of the last evaluated expression, which in this case is an assignment
arg <- arg + 3
( , R - , , .) data <- derp(500) data, 503.
, . R. , :
derp <- function(arg)
{
arg <- arg + 3
arg
}
derp <- function(arg)
arg + 3