I am new to R and Rmd and trying to generate a report using Rmd. This report has several images inserted along with the text. I am able to insert an image by hardcoding the path of the image. I have no problems with that but I need the path as a variable because it varies with the project. Can anyone help me with the syntax for calling a variable within a path to the image?

"Project123" changes based on the project. Is there a way I can declare this variable and call it to define the path?
Help please.
(whereimgpathis a variable in R that you defined to be your/data/array.../file.pngpath/filename).