mlampros / fitbitVizBlog

Fitbit Visualizations and data using 'fitbitViz', 'blogdown' and 'Github Actions'

Home Page:https://mlampros.github.io/fitbitVizBlog/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


Hugo Lithium (theme) of R blogdown for Fitbit Visualizations



Frequent issues when running the gh_fitbit_blog.yaml file:

  • Error in content_list_obj$sleep[[1]] : subscript out of bounds Calls: <Anonymous> -> sleep_single_day

    • You haven't updated the Fitbit data in your account! Connect to the application to upload the recent data for this Date
  • Error in hillshade[, , 1] * scales::rescale(shadowmap, c(max_darken, 1)) : non-conformable arrays

    • Highly probable it's caused by the 'linestring_ASC_DESC' parameter of the 'fitbitViz::rayshader_3d_DEM()' function. Set this parameter to NULL for the specific route or specify a time point for the split (see documentation)
  • Error: Using bundled GitHub PAT. Please add your own PAT to the env var GITHUB_PAT Error: Failed to install 'unknown package' from GitHub: HTTP error 401. Bad credentials

    • Use the auth_token = '${{ secrets.GH_PAT }}' parameter in remotes::install_github() ( See the README.md file of the fitbitViz package on how to create the GH_PAT environment variable)
    • In case that it still gives the error then first run Sys.setenv(GITHUB_PAT = '${{ secrets.GH_PAT }}') and then proceed with the remotes::install_github() function without the auth_token parameter. See (and use) for instance this line of code.

About

Fitbit Visualizations and data using 'fitbitViz', 'blogdown' and 'Github Actions'

https://mlampros.github.io/fitbitVizBlog/

License:MIT License


Languages

Language:JavaScript 91.2%Language:CSS 4.9%Language:R 2.5%Language:HTML 1.4%