简体   繁体   中英

Default author not working in blogdown

I've followed the instructions in Yihui Xie's book and setup a blog using RStudio + RMarkdown + Hugo > Github > Netlify.

Every time I create a new post with the Addins > New Post dropdown in RStudio the author is blank even though I have created a .Rprofile file located in my home directory with the single line:

options(blogdown.author = "First Last")

What silly thing am I doing wrong?

Problem solved! I needed at extra blank line at the end of the .Rprofile file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM