Pacific-salmon-assess / MetricsCOSEWIC

R Package for calculating COSEWIC metrics. Initial focus is on Probability of Decline.
GNU General Public License v3.0
0 stars 2 forks source link

stalling loading package #47

Open carrieholt opened 3 years ago

carrieholt commented 3 years ago

Just trying to reload the package, and I find that it's stalling (both using install_github("SOLV-Code/MetricsCOSEWIC", dependencies = TRUE, build_vignettes = FALSE) and load_all() within the project directory). Is this because of the large input datasets, or something else? Are you having this problem?

SOLV-Code commented 3 years ago

Haven't had this happen. will check. Shouldn't be the data sets, they're not big. Might be the dependencies.

Can you try with dependencies = FALSE,

carrieholt commented 3 years ago

Still doesn't work for me, but I can load other packges from git...

carrieholt commented 3 years ago

It works now. Phewww! It had to do with updating dependencies.

SOLV-Code commented 3 years ago

any idea which one it was? Would be good to figure out and deal with it.

carrieholt commented 3 years ago

Sorry, I don't...

SOLV-Code commented 3 years ago

No worries, I'll keep this issue open and try out the install when I get a chance. See if the same thing happens.

SOLV-Code commented 3 years ago

Install Testing

I did a clean install in a new R project with dependencies = TRUE and the entered 1 to update all dependencies.

It gave 2 warnings:

package ‘cachem’ successfully unpacked and MD5 sums checked
Warning: cannot remove prior installation of package ‘cachem’
Warning: restored ‘cachem’

and

package ‘curl’ successfully unpacked and MD5 sums checked
Warning: cannot remove prior installation of package ‘curl’
Warning: restored ‘curl’

and then at the end:

Warning messages:
1: In file.copy(savedcopy, lib, recursive = TRUE) :
  problem copying C:\Users\jeffv\Documents\R\win-library\4.1\00LOCK\cachem\libs\x64\cachem.dll to C:\Users\jeffv\Documents\R\win-library\4.1\cachem\libs\x64\cachem.dll: Permission denied
2: In file.copy(savedcopy, lib, recursive = TRUE) :
  problem copying C:\Users\jeffv\Documents\R\win-library\4.1\00LOCK\curl\libs\x64\curl.dll to C:\Users\jeffv\Documents\R\win-library\4.1\curl\libs\x64\curl.dll: Permission denied

The package seems to have installed fine, though. For example ?multiFit opens the help page.

However, it seems to have messed up my tidyverse install along the way

Error: package or namespace load failed for ‘tidyverse’:
 .onAttach failed in attachNamespace() for 'tidyverse', details:
  call: base::nchar(wide_chars$test, type = "width")
  error: lazy-load database 'C:/Users/jeffv/Documents/R/win-library/4.1/cli/R/sysdata.rdb' is corrupt
In addition: Warning message:
In base::nchar(wide_chars$test, type = "width") :
  internal error -3 in R_decompress1

but reinstalling tidyverse did the trick:

> install.packages("tidyverse")