Is there a way to print text and variable contents on the same line? For example,
wd <- getwd() print(\"Current working dir: \", wd)
I c
You can use paste with print
paste
print
print(paste0("Current working dir: ", wd))
or cat
cat
cat("Current working dir: ", wd)