Hong-Kong-Districts-Info/dashboard-hkdistrictcouncillors

Bug: Get codecov to work

Closed this issue · 4 comments

Describe the bug
Connection to codecov.io is failing. Suspect it is because we cannot create it as a package via usethis::create_package().

To Reproduce
Steps to reproduce the behavior:

  1. In R, run...
  2. library(covr)
  3. codecov(token = '4cc5420c-aaed-4fd4-abb9-00552753152e')
  4. See error

Expected behavior
No error message

Screenshots
image

Desktop (please complete the following information):

  • OS: iOS Mojave 10.14.26
  • R version: 3.6.2
  • Platform: x86_64-apple-darwin15.6.0 (64-bit)

Additional context
Add any other context about the problem here.

Tried a different approach.

Created a new repo using:
usethis::create_package(path = "~/Documents/GitHub/hkdcinfo")

Then in the new package/project, ran:

install.packages(pkgs = 'covr', Ncpus - 3)
covr::codecov(token = '<token>')

Upload worked but since it was not tied to a GitHub repo, nothing informative was being shown. Thus figured we should bring in existing code in this repo, including Git history. Hence, tried the following on the current, newly-created repo, within the terminal:

git remote add origin https://github.com/avisionh/dashboard-hkdistrictcouncillors
git remote add origin-new https://github.com/avisionh/hkdcinfo.git
git pull origin master --allow-unrelated-histories
rm dashboard-hkdistrictcouncillors.Rproj
git add .
git commit -m "fix: Sort out conflicts in merge between NAMESPACE, DESCRIPTION, .Rbuildignore and .gitignore"
git push origin-new main
r
covr::codecov()

Then got the same error message.
image

Think we need to start afresh or at least delete possible files which are created when establishing a new package and re-doing them. These are files like:

  • NAMESPACE
  • DESCRIPTION

Blocked: Related to #37. If cannot create package, then probably cannot use codecov.

Should note that this works fine on a fresh R project cum project.

Won't be able to resolve because repo name is dodgy, due to having a hyphen in.