If you really want to do a sum of a numeric vector, then this is the way forth:
test_scores = c(1,5,3,0,5)
total_score = sum(test_scores)
Btw. compared to a car, the R is the engine and RStudio everything around it, i.e. the rest of the car (aka an IDE) 