Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Hi i´m not sure if this is the exact forum to solve this issue, but i´m currently doing a free online course on PowerBI and i got into this class where we learn some basic R language to use the program with when i ran into this error while using RStudio:
setdw("C:/Users/Victor/Desktop/PowerBI/VendasR.csv")
Error in setdw("C:/Users/Victor/Desktop/PowerBI/VendasR.csv") :
could not find function "setdw"
I´m not a programmer and tried googling this out to no avail. Any help is appreciated.
Solved! Go to Solution.
Hi @VBeaklini ,
Your working directory seems to be pointing to a file?
Please change it to a folder, such as: setwd("C:/Users/Victor/Desktop/PowerBI/")
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @VBeaklini ,
Your working directory seems to be pointing to a file?
Please change it to a folder, such as: setwd("C:/Users/Victor/Desktop/PowerBI/")
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @VBeaklini ,
There can be a lot of reasons for which such an error might occur in R. Some of the reasons are the following:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Okay, it can´t be the first two since i read and reread and corrected and recorrected it so many times. As for permission to access a file and compiling restrictions, how do i check for those? It´s a simple file in a simple folder on my personal computer, so there shouldn´t be any issues regarding permission. As for compilers, i don´t know what that means.
Hi @VBeaklini ,
It seems that you want to use setwd() function?
The setwd() function stands for set working directory. This is used to set the working environment.
Please check your spelling, it is setwd() not setdw()
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Holy crap i´m so dumb. Thanks.
However now that i set thing correctly i now run into this new error:
setwd("C:/Users/Victor/Desktop/PowerBI/VendasR.csv")
Error in setwd("C:/Users/Victor/Desktop/PowerBI/VendasR.csv") :
cannot change working directory
Any thoughts?
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |