Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • Jan 31 2019 15:23
    road2stat closed #346
  • Jan 30 2019 00:56
    road2stat closed #344
  • Jan 30 2019 00:56
    road2stat commented #344
  • Jan 30 2019 00:55
    road2stat edited #344
  • Jan 30 2019 00:55
    road2stat commented #346
  • Jan 29 2019 08:46
    CarlvinJerry commented #344
  • Jan 29 2019 07:43
    nataliegnelson opened #346
  • Jan 29 2019 04:56
    road2stat commented #345
  • Jan 29 2019 04:24
    SportStatisticsRSweet closed #345
  • Jan 29 2019 04:24
    SportStatisticsRSweet commented #345
  • Jan 29 2019 04:18
    road2stat commented #345
  • Jan 29 2019 04:10
    road2stat commented #344
  • Jan 29 2019 04:08
    SportStatisticsRSweet opened #345
  • Jan 28 2019 19:50
    CarlvinJerry commented #344
  • Jan 28 2019 19:31
    CarlvinJerry opened #344
  • Jan 28 2019 17:54
    road2stat closed #343
  • Jan 28 2019 17:54
    road2stat commented #343
  • Jan 28 2019 16:59
    CarlvinJerry opened #343
  • Jan 28 2019 16:37
    CarlvinJerry commented #342
  • Jan 28 2019 16:11
    road2stat closed #342
Bruno Rodrigues
it's really easy
however I'm not sure I've done the right steps to use my own domain
I own www.brodrigues.co, registrar gandi.net
I enabled the custom domain on netlify
and then pointed the domain to the nameservers that I was given
is that enough?
Bruno Rodrigues
yep, seems like it's enough
just had to wait
Yihui Xie
That is right. You always have to wait when making DNS or nameserver changes.
hello.very sorry.there is something wrong just now.please do not mind.I am a Chinese student.I want to know how to build a website I can use it in Chinese.Thank you.
Ella Kaye
Hello. I'm not sure if this question is best here or as an issue (I opened it as #195). Yesterday I made a changes to my website (https://ellakaye.rbind.io) and appear to have successfully pushed it to GitHub, but the change hasn't deployed to the website. It shows up fine when I serve the site in Rstudio, just not online. I've cleared my caches and tried in a couple of different browsers. I haven't had issues with this before, and I'm not aware of having changed anything in the setup. Does anyone have any ideas what might be going on and how to fix it? Thanks!
Corey Pembleton
Hello everyone! Great community, I read issue #195 @EllaKaye and it solved my issue as well, so thanks. My question: Has anyone customized ghostwriter? I have it up and running, but have no css experience and would like to customize a few things. Any help appreciated. Cheers, and thank you.
Liechi Zhang

Hi, there, may I ask a help related to the deployment of my website(/Users/administrator/Documents/liechi) from repo(https://github.com/rbind/liechi).

I wrote a blog in RStudio and using blogdown and pushed it to my above mentioned repo for autopublishing through netlify. But the email from netify said that my recent builds had failed. I checked the repo, and found the blog was pushed to the folder under the repo correctly.

The error message said:

failed during stage 'preparing repo': git ref refs/heads/master does not exist

I checked my .git files and I could see the "HEAD" there.

I checked the deploy logs and found this:

2:20:36 PM: Build ready to start
2:20:37 PM: build-image version: 42bca793ccd33055023c56c4ca8510463a56d317
2:20:37 PM: buildbot version: 15854c92f1b74f9c77ad951b5536193c76eff25e
2:20:37 PM: Fetching cached dependencies
2:20:38 PM: Failed to fetch cache, continuing with build
2:20:38 PM: Starting to prepare the repo for build
2:20:38 PM: git ref refs/heads/master does not exist or you do not have permission
2:20:38 PM: Failing build: Failed to prepare repo
2:20:38 PM: failed during stage 'preparing repo': git ref refs/heads/master does not exist
2:20:38 PM: Finished processing build request in 774.672806ms

I used hugo 0.19 to build my site before. When I found this building failure, I updated the hugo to 0.50, because some google search suggested the older version of hugo was not supported.
But it did not solve the problem. It has been quite a while since the last time I wrote blogs, so maybe something has changed? Is there any idea?

BTW, I did not use hashtags in my posts, so the issue seemed to be different from that of issue #195.

Liechi Zhang
The local serving of my site in RStudio is OK, the problem only happened in the deployment through netilify.
Yihui Xie
@liechi I just reconnected your Github repo and site to Netlify. I don't know why this is necessary (something in Netlify's authentication might be wrong) but your site seems to be working now.
Liechi Zhang
That’s great! Thanks a lot! The post is nicely there now.
Hi there, I'm considering joining rbind and would like to request an invitation for my blog at https://github.com/matdoering/data-blog which is hosted at datascienceblog.net. I'm not sure if this is the right channel for asking for the transfer permission but I couldn't find another contact ... :-)
Yihui Xie
@matdoering I've sent you an invite.
@yihui Thanks for the invite.! I've just done the transfer :-)
Gergo Palfalvi

Hi everyone. I am using blogdown for my site for a while now and i love it. However on my latest post, i tried to serve_site() locallyand got a strange error message, i could not resolve. Tried to reinstall blogdown and other pkgs, like xfun butnothing. The error msg is as follows:

Error in get(name, envir = asNamespace(pkg), inherits = FALSE) :
object 'sans_ext' not found

Anyone hasideahow i could resolve this issue? Thanks in advance!

Liechi Zhang
Hi, everyone. I met a problem when trying to write a post in rmarkdown, but could not find a solution with google. The problem happens when I try to writing a post in rmarkdown format. When serving the site locally using Serve Site in Addins, error appeared:
* knitting content/en/2019-04-28-a-test-post.Rmd
Error in get(name, envir = asNamespace(pkg), inherits = FALSE) : 
  object 'sans_ext' not found
Calls: local ... eval.parent -> eval -> eval -> eval -> eval -> ::: -> get
Execution halted
Error in build_one(unlist(files[i, ])) : 
  Failed to compile content/en/2019-04-28-a-test-post.Rmd to content/en/2019-04-28-a-test-post.md
Execution halted
Error in run_script("R/build.R", as.character(local)) : 
  Failed to run R/build.R
I updated both R and RStudio to the newest version as well as the related packages including "blogdown", "xfun"...but this problem still existed. This problem is similar to what @palfalvi has mentioned. @palfalvi told me his problem disappeared after he updated R, but he did not know what had been wrong before. In my case, the problem still exists after updating everything I could think of.
Liechi Zhang
I appreciate a lot if you have any idea on this issue. Thanks!
Yihui Xie
@liechi Try to restart R, reinstall blogdown, xfun, and knitr. Restart R again.
Liechi Zhang
@yihui Thanks for the suggestion. I restarted R, reinstalled the packages, and restarted R again. But when I tried to knit the rmd file by Serve Site, the same error information appeared:
> blogdown:::serve_site()
* knitting content/cn/2019-04-29-a-second-test.Rmd
Error in get(name, envir = asNamespace(pkg), inherits = FALSE) : 
  object 'sans_ext' not found
Calls: local ... eval.parent -> eval -> eval -> eval -> eval -> ::: -> get
Execution halted
Error in build_one(unlist(files[i, ])) : 
  Failed to compile content/cn/2019-04-29-a-second-test.Rmd to content/cn/2019-04-29-a-second-test.md
Execution halted
Error in run_script("R/build.R", as.character(local)) : 
  Failed to run R/build.R

This is my sessionInf:

> sessionInfo()
R version 3.6.0 (2019-04-26)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Sierra 10.12.6

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib

[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

I used rmd file for some posts two years ago, and it worked well, but most of the time I used md format for blogging. Recently I hoped to make some statistics learning notes with rmd, and met this issue.

Yihui Xie
@liechi In R/build.R, use xfun::sans_ext().
Liechi Zhang
Hi, @yihui Thanks, problem solved.
The sans_ext() was changed from knitr to xfun, and the blogdown:::readUTF8() and blogdown:::writeUTF8() were changed to xfun:::read_utf8() and xfun:::write_utf8(). These changes affected R/build_one.R, instead of R/build.R, so the rmd files were not knitted.
Thank you very much! Without your help, I have no way to identify this cause. Now everything works perfectly : ).
Liechi Zhang
Sorry, one more issue appears, and I could not find out why after checking things I could think of. Now the rmd file is successfully knitted to md file, but this md file could not be published by netlify after git push to my repo. I checked the repo, the md file is there under the en directory, and the netlify sent me notification emails saying "we just published a new production deploy." The deploy summary said:"All files already uploaded. All files already uploaded by a previous deploy with the same commits." But I do have uploaded a new file to the en directory. I comfirmed that the changes of file under cn directory could be published successfully, but not under en. The deploy log looked like this:
2:33:16 AM: Build ready to start
2:33:19 AM: build-image version: 9eeed52f6b95fa5f3838ee7b24b78fd68423ad6f
2:33:19 AM: build-image tag: v2.7.4
2:33:19 AM: buildbot version: 873914ead406888d4b46ecb363c89d5bf7360075
2:33:19 AM: Fetching cached dependencies
2:33:19 AM: Starting to download cache of 188.4MB
2:33:21 AM: Finished downloading cache in 2.140189171s
2:33:21 AM: Starting to extract cache
2:33:27 AM: Finished extracting cache in 5.362835825s
2:33:27 AM: Finished fetching cache in 7.641798201s
2:33:27 AM: Starting to prepare the repo for build
2:33:27 AM: Preparing Git Reference refs/heads/master
2:33:28 AM: Starting build script
2:33:28 AM: Installing dependencies
2:33:28 AM: Started restoring cached node version
2:33:30 AM: Finished restoring cached node version
2:33:30 AM: v8.16.0 is already installed.
2:33:31 AM: Now using node v8.16.0 (npm v6.4.1)
2:33:31 AM: Attempting ruby version 2.3.6, read from environment
2:33:33 AM: Using ruby version 2.3.6
2:33:33 AM: Using PHP version 5.6
2:33:33 AM: Installing Hugo 0.50
2:33:33 AM: Hugo Static Site Generator v0.50 linux/amd64 BuildDate: 2018-10-29T09:52:34Z
2:33:33 AM: Started restoring cached go cache
2:33:35 AM: Finished restoring cached go cache
2:33:35 AM: Installing Go version 1.10
2:33:35 AM: unset GOOS;
2:33:35 AM: unset GOARCH;
2:33:35 AM: export GOROOT='/opt/buildhome/.gimme_cache/versions/go1.10.linux.amd64';
2:33:35 AM: export PATH="/opt/buildhome/.gimme_cache/versions/go1.10.linux.amd64/bin:${PATH}";
2:33:35 AM: go version >&2;
2:33:35 AM: export GIMME_ENV='/opt/buildhome/.gimme_cache/env/go1.10.linux.amd64.env';
2:33:35 AM: go version go1.10 linux/amd64
2:33:35 AM: Installing missing commands
2:33:35 AM: Verify run directory
2:33:35 AM: Executing user command: hugo
2:33:35 AM: Building sites …
2:33:35 AM:                    | EN
2:33:35 AM: +------------------+----+
2:33:35 AM:   Pages            | 71
2:33:35 AM:   Paginator pages  |  0
2:33:35 AM:   Non-page files   |  2
2:33:35 AM:   Static files     | 26
2:33:35 AM:   Processed images |  0
2:33:35 AM:   Aliases          |  0
2:33:35 AM:   Sitemaps         |  1
2:33:35 AM:   Cleaned          |  0
2:33:35 AM: Total in 410 ms
2:33:35 AM: Build script success
2:33:35 AM: Starting cache prep script
2:33:35 AM: Caching artifacts
2:33:35 AM: Started saving pip cache
2:33:35 AM: Finished saving pip cache
2:33:35 AM: Started saving emacs cask dependencies
2:33:36 AM: Finished saving emacs cask dependencies
2:33:36 AM: Started saving maven dependencies
2:33:36 AM: Finished saving maven dependencies
2:33:36 AM: Started saving boot dependencies
2:33:36 AM: Finished saving boot dependencies
2:33:36 AM: Started saving go dependencies
2:33:37 AM: Finished saving go dependencies
2:33:39 AM: Cache script success
2:33:39 AM: Starting to deploy site from 'public'
2:33:39 AM: Creating deploy tree 
2:33:39 AM: 0 new files to upload
2:33:39 AM: 0 new functions to upload
2:33:39 AM: Starting post processing
2:33:40 AM: Post processing done
2:33:40 AM: Site is live
2:34:14 AM: Finished processing build request in 55.124789746s
2:34:14 AM: Shutting down logging, 0 messages pending
Liechi Zhang
No error message appeared, just the files under en directory seemed to be ignored, while the ones under cn are available for deploying.
Liechi Zhang
Now the posts under en folder were deployed again, but I have no idea why it suddenly worked. Anyway, it looks good. Please ignore the above issue and sorry for disturbing.
Hello. I've been trying to add e picture to my post using the addin, but can't get it to work (complete beginner).
Liechi Zhang
Hi, I have a problem on deploying my site from github.
I pushed a post to my github repo (https://github.com/rbind/liechi) for publishing. According the the netlify deploying log, the site was successfully deployed.
However, on my site (liechi.org), I could not see the new post. I re-deployed the site, but it remained the same.
Then I did some trial and error trying to fix the problem. I changed the hugo version and re-connected the site to the github repo. However, the problem was not fix and error message came out while deploying after my changing.
I guess I made some mistake, but could not figure out where it is.
I appreciate a lot if you may take a look into the problem.
Thanks a lot.
Liechi Zhang
Hi, I fixed the problem by setting the build image to "Ubuntu Xenial 16.04 (default)
," I don't know why it worked but anyway, the problem has been solved : )
Hello. I have just made a new website using blogdown. I have a couple of questions.
  1. I am currently using the default Hugo Lithium theme. I like it a lot, but one thing I would like to add is a Dark Mode. CSS now supports automatic Dark Mode switching, so it is possible for a website to switch to Dark Mode automatically if the browser is in Dark Mode. This is a feature I would like to take advantage of. How do I get started on this? Is it a feasible task for me to make an alternate theme and have the page switch automatically?
  1. How do I resize an image? I have tried <img src = "" width = "50%" height = "50%"> and many variations of it but the code doesn't work. The same source used in works fine. R recognizes the code so "<img src = "" width = "50%" height = "50%">" doesn't show up as text in the rendered markdown, but it doesn't display an image either. It only creates a paragraph break.
Code above is meant to say ""
! [] ()
  1. I have set a custom favicon that works everywhere except the "about" page. It's the same as the default "about" page, I just deleted all the text and added my own. For some reason it still shows the default favicon, even though I removed the file in the theme folder.
  1. My logo and favicon is the default one but I removed the "Li" and replaced it with "FS". I have also adjusted the orange hue so it's more vibrant. However, the logo doesn't appear as vibrant on the web as it does in my R Viewer tab. Is there a way I can fix this?
Francisco Bischoff
any admin here?