I generally try to avoid code duplication, even in single rows. However, I find myself writing lines like this in R a lot:
# R code
my_long_vector_var_name <- append(my_long_vector_var_name, new_var)
my_long_int_name <- my_long_int_name + 1
In Python, not only are there way less letters in a row - I also do not have to write the same variable twice, which potentially reduces errors:
my_long_vector_var_name.append(new_var)
my_long_int_name += 1
For the second one, this question indicates that there truely is no comparable "short" way in R. The question, however, is more than 6 years old. Is there still no better way to do this in R?