leppott / ContDataQC

Quality control checks on continuous data. Example data is from a HOBO data logger with 30 minute intervals.
https://leppott.github.io/ContDataQC/
MIT License
20 stars 10 forks source link

Failed install - R v3.6.0 - staged install #88

Closed leppott closed 3 years ago

leppott commented 5 years ago

Describe the bug Staged install implemented in R v.3.6.0 is causing the package to not install.

StagedInstall = FALSE in DESCRIPTION is a quick (temporary) fix.

Due to use system.file(package="ContDataQC").

Staged install installs to temp directory and fails.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem. image

Additional context https://developer.r-project.org/Blog/public/2019/02/14/staged-install/index.html

leppott commented 5 years ago

Should be "no" not "false" for StagedInstall.

leppott commented 5 years ago

Still having issues.

leppott commented 5 years ago

Resolve issue with devtools by adding extra line of code before download from GitHub.

Seems to be an issue with devtools:

https://github.com/r-lib/devtools/issues/1939

Using Sys.setenv("TAR" = "internal") prior to devtools::install_gitbub("leppott/CASTfxn") seems to do the trick.

leppott commented 5 years ago

Use system.file() instead of variables in all instances.

image

leppott commented 5 years ago

Used in configuration file and in Shiny app.

leppott commented 5 years ago

Saved in config file. Harder to tackle. Added back StagedInstall: no to DESCRIPTION.

leppott commented 5 years ago

With extra line resolves install from GitHub. But still not a permanent fix.

leppott commented 3 years ago

Current R version is 4.0.3 (2020-10-10).

No longer an issue.