I don’t think R is conflating vectors and scalars. It straight up doesn’t let you access scalars.
Hot take: if you are programming in R you are probably using the wrong tool. If you are analyzing, munging, modeling, visualizing data or fitting/training models, you are probably using the right tool.