devtools::check permission denied in Build panel

hi! Running devtools::check in the Console works but doing it through the Build panel fails with: cannot create file '/mnt/my_package.tar.gz', reason 'Permission denied'

What can I do to change the folder where the check is done from? I've tried with --output=/mnt/code/tmo --path=/mnt/code/tmo without luck.

I am using R Studio Server 1.4.1106