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

Warning in serialize #528

Open
dcaud opened this issue Jul 12, 2021 · 1 comment
Open

Warning in serialize #528

dcaud opened this issue Jul 12, 2021 · 1 comment
Labels

Comments

@dcaud
Copy link

dcaud commented Jul 12, 2021

As mentioned in an earlier closed issue (#48), I'm getting this warning:

Warning in serialize(data, node$con, xdr = FALSE) :
'package:promises' may not be available when loading

Not fully reproducible (sorry!), but here's the gist of code that produces the warning:

 plan(multisession, gc=TRUE)
 result_val <- reactiveVal()

          result <- future(seed=NULL,{
            temp1 <- image_read_pdf(
              pdfFileLocation.here,
              density = floor(
                density.for.download * density.multiplier.for.big.files.here
              ),
              pages = pages.to.process.max.here
            ) %>%
              replace.color(
                color.selected.here) %>% image_write(
              tempfile(pattern = "pdftemp", fileext = '.pdf'),
              density = floor(
                density.for.download * density.multiplier.for.big.files.here
              ),
              format = 'pdf'
            )
            progress$close()
            cat("Done with pdf recolor future")
            file.copy(temp1, file)
          },
          gc=TRUE) %...>% 
            result_val()

          result <- catch(result,
                          function(e){
                            result_val(NULL)
                            progress$close()
                            cat("\nfuture result error: ",e$message)
                            showNotification(e$message)
                          })
          
          result <- finally(result,
                            function(){
                              future:::ClusterRegistry("stop")
                            })
          
          result
@dcaud dcaud added the bug label Jul 12, 2021
@HenrikBengtsson
Copy link
Owner

Hi, thanks for this. What's your sessionInfo()?

Also, is there any chance you could make this reproducible, because without a reproducible example it'll be hard for me to troubleshooting. Maybe you can find an online PDF together with real values for those place-holder variables that can be used to reproduce it?

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

No branches or pull requests

2 participants