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
A trick would be to include your piece of code into () like this:
()
(wd <- getwd())
which means that the current working directory is assigned to wd and then printed.
wd