TransWikia.com

Cannot read workspace version 3 written by R 4.0.2; need R 3.5.0 or newer

Stack Overflow Asked on December 2, 2021

I’m following the instructions from https://www.mssqltips.com/sqlservertip/5490/load-data-from-pdf-file-into-sql-server-2017-with-r/ to read a PDF document into SQL Server.

The problem I’m facing is when I run the code, I get the following error:

Msg 39004, Level 16, State 20, Line 5
A 'R' script error occurred during execution of 'sp_execute_external_script' with HRESULT 0x80004004.
Msg 39019, Level 16, State 2, Line 5
An external script error occurred: 
Error in readRDS(pfile) : 
  cannot read workspace version 3 written by R 4.0.2; need R 3.5.0 or newer
Calls: source ... library -> find.package -> lapply -> FUN -> readRDS

Error in execution.  Check the output for more information.
Error in eval(expr, envir, enclos) : 
  Error in execution.  Check the output for more information.
Calls: source -> withVisible -> eval -> eval -> .Call
Execution halted

Any ideas what I need to do here?

One Answer

I think this error is due to R packages that are out of sync. I was able to fix it with update.packages().

Answered by Darlene on December 2, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP