Working directory

How can I change working directory using R function (which function need to be used) before importing a .csv file using read_csv function

setwd()

You don't necessarily need to change the working directory. You can specify the path in read_csv(). Better still, use projects:
8 Workflow: projects | R for Data Science (had.co.nz)

thanks for the support