Complete the code to install the RStudio IDE package.
install.packages([1])The correct package name to install RStudio IDE related tools is "rstudioapi".
Complete the code to load the RStudio API library after installation.
library([1])The correct library to load for RStudio API functions is rstudioapi.
Fix the error in the code to open a new RStudio project.
rstudioapi::[1]("path/to/project")
The correct function to open a project is openProject with exact capitalization.
Fill both blanks to create a new RStudio project in a specified directory without opening it.
rstudioapi::[1](path = "path/to/new_project", open = [2])
Use createProject to create a new project and set open = FALSE to not open it immediately.
Fill all three blanks to check if RStudio is running and get the version.
if (rstudioapi::[1]()) { version <- rstudioapi::[2]() print(version$[3]) }
isAvailable() checks if RStudio is running, versionInfo() gets version details, and version accesses the version string.