You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
name: R Daily Workflowon:
schedule:
- cron: '36 21 * * 5'# This schedules the action to run daily at 9:36pm UTC which is 4:36pm ESTworkflow_dispatch:
jobs:
run-r-scripts:
runs-on: ubuntu-lateststeps:
# Check out the code from the repo
- name: Check out codeuses: actions/checkout@v4# Set up R environment
- name: Setup Ruses: r-lib/actions/setup-r@v2# Download and set up Chrome
- name: Download and set up Chromerun: | wget https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6045.105/linux64/chrome-linux64.zip unzip chrome-linux64.zip sudo mv chrome-linux64/chrome /opt/google/chrome/chrome# Verify Chrome Installation
- name: Verify Chrome Installationrun: google-chrome-stable --version
- name: Install R packages with pakrun: | Rscript -e "install.packages('pak', repos = 'https://r-lib.github.io/p/pak/stable/')" Rscript -e "pak::pak_setup()" Rscript -e "pak::pkg_install(c('dplyr', 'openxlsx', 'stringr', 'rvest', 'chromote'))"
## next, running the script is actions...
library(dplyr)
library(stringr)
library(openxlsx)
library(rvest)
link="https://innovation.ised-isde.canada.ca/s/group-groupe?language=en_CA&token=a0BOG000000Y7oh2AC"sess<- read_html_live(link)
## get this error in github actions, but not locally on my windows pc
Attaching package: ‘dplyr’
The following objects are masked from ‘package:stats’:
filter, lag
The following objects are masked from ‘package:base’:
intersect, setdiff, setequal, union
Error in parse_con(txt, bigint_as_char) :
lexical error: invalid char in json text.
import{getTrustedHTML}from"//re
(right here) ------^
Calls: read_html_live ... <Anonymous> -> parse_and_simplify -> parseJSON -> parse_con
Execution halted
Error: Process completed with exit code 1.
The text was updated successfully, but these errors were encountered:
Continuation of #394
Can install, but now get another error...
Slice of my github actions:
The text was updated successfully, but these errors were encountered: