Your my.function.R needs to be in a www subfolder that uploads with the rest - and you need source("www/my.function.R") to include the file ; I recommend against a dot between my and function - that's asking for trouble - I'm a newbie and love the idea of being able to help - Let me know if I did !