by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 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
matdoering
@matdoering
@yihui Thanks for the invite.! I've just done the transfer :-)
Gergo Palfalvi
@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
@liechi
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
@liechi
I appreciate a lot if you have any idea on this issue. Thanks!
Yihui Xie
@yihui
@liechi Try to restart R, reinstall blogdown, xfun, and knitr. Restart R again.
Liechi Zhang
@liechi
@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

locale:
[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
@yihui
@liechi In R/build.R, use xfun::sans_ext().
Liechi Zhang
@liechi
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
@liechi
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
@liechi
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
@liechi
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.
jmfredriksen
@jmfredriksen
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
@liechi
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
@liechi
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 : )
farzadsaif
@farzadsaif
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 ""
! [] ()
farzadsaif
@farzadsaif
  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?