r to foo