Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pirouette cleans up too much? #433

Open
richelbilderbeek opened this issue Oct 5, 2023 · 0 comments
Open

pirouette cleans up too much? #433

richelbilderbeek opened this issue Oct 5, 2023 · 0 comments

Comments

@richelbilderbeek
Copy link
Owner

Describe the bug

Here a file cannot be found:

Package: pirouette [Old version: 1.6.7, New version: 1.6.8]
Check: examples
New result: ERROR
  Running examples in ‘pirouette-Ex.R’ failed
  The error most likely occurred in:
  
  > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
  > ### Name: create_twal_file
  > ### Title: Simulates a twin DNA alignment and saves it to a FASTA file.
  > ### Aliases: create_twal_file
  > 
  > ### ** Examples
  > 
  > # Create a true phylogeny to simulate the DNA sequences on
  > n_taxa <- 5
  > set.seed(1)
  > phylogeny <- ape::rcoal(n_taxa)
  > 
  > # Create the ancestor's DNA sequence
  > n_base_pairs <- 4
  > root_sequence <- create_blocked_dna(length = n_base_pairs)
  > 
  > # Simulate and save the true alignment
  > alignment_params <- create_alignment_params(
  +   root_sequence = root_sequence
  + )
  > create_tral_file(
  +   phylogeny = phylogeny,
  +   alignment_params = alignment_params
  + )
  > 
  > # Create a twin phylogeny to simulate the DNA sequences on
  > set.seed(2)
  > twin_phylogeny <- ape::rcoal(n_taxa)
  > 
  > # File does not exist yet
  > twinning_params <- create_twinning_params()
  > 
  > # Simulate and save the twin alignment
  > alignment <- create_twal_file(
  +  twin_phylogeny = twin_phylogeny,
  +  alignment_params = alignment_params,
  +  twinning_params = twinning_params
  + )
  Warning in file(con, "rb") :
    cannot open file '/tmp/check-CRAN-incoming-hornik/cache/beautier/alignment_327e11bc49e4.fasta': No such file or directory

I feel this is because the file has been deleted by beastier::remove_beaustier_folders somewhere.

I think that a2788fb will not fix it

To Reproduce

Submit to CRAN.

Expected behavior

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

Environment:
Show the results of running the following script:

library(mcbette)
mcbette::mcbette_report()

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant