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

IncidencePrevalence Export Issue #70

Closed
JordiRodeiroSJD opened this issue Jul 5, 2024 · 8 comments
Closed

IncidencePrevalence Export Issue #70

JordiRodeiroSJD opened this issue Jul 5, 2024 · 8 comments

Comments

@JordiRodeiroSJD
Copy link

Hi,

I am encountering an error in the Incidence-Prevalence section.

As noted in the image of the error trace, a function called in the code cannot be found.

IncidencePrevalence error

Could you please provide me with assistance?

Thanks,
Jordi Rodeiro

@tiozab
Copy link
Collaborator

tiozab commented Jul 8, 2024

@JordiRodeiroSJD can you let me know which version of Incidence Prevalence you are using, and your database management system? Thank you.

@edward-burn any idea what is going on that all of a sudden functions cannot be found? same as the other issue #68 in Codelistgenerator?

@JordiRodeiroSJD
Copy link
Author

I am using a SQLServer Database and the Incidence Prevalence version is 0.7.4.

@tiozab
Copy link
Collaborator

tiozab commented Jul 8, 2024

Thanks @JordiRodeiroSJD please use the renv.lock file and make sure it works properly :-)

@JordiRodeiroSJD
Copy link
Author

When trying to use the renv.lock, an error pops up.

Error: Error installing package 'curl':
Error in download.file(url, basename(url), quiet = TRUE) :
cannot open URL 'https://github.com/r-windows/bundles/releases/download/curl-8.3.0/curl-8.3.0-ucrt-x86_64.tar.xz'

I understand that is not from your code, but it unables me from using the renv.lock provided.

@tiozab
Copy link
Collaborator

tiozab commented Jul 9, 2024

@JordiRodeiroSJD just found this on stackoverflow.
https://stackoverflow.com/questions/35931342/r-cannot-access-urls-for-package-installation

try running this command before the renv activation?
options(repos="https://CRAN.R-project.org")
however, there is one package that comes from OHDSI (circeR 1.3.1)

otherwise please install the correct versions of the following packages separately:

"Package": "PatientProfiles",
"Version": "0.4.0",

 "Package": "CDMConnector",
  "Version": "1.2.1",

"Package": "IncidencePrevalence",
  "Version": "0.6.0",

"Package": "DrugUtilisation",
"Version": "0.4.1",

  "Package": "dbplyr",
  "Version": "2.4.0",

"Package": "CodelistGenerator",
"Version": "2.1.1",

  "Package": "MASS",
  "Version": "7.3-60",

  "Package": "curl",
  "Version": "5.1.0",

from ohdsi:
"CirceR": {
"Package": "CirceR",
"Version": "1.3.1",
"Source": "GitHub",
"RemoteType": "github",
"RemoteHost": "api.github.com",
"RemoteRepo": "CirceR",
"RemoteUsername": "ohdsi",

Until here are the relevant ones.

and you can look up the other versions for these packages, however I dont think their version matters:
library("devtools")
library("odbc")
library("RPostgres")
library("DBI")
library("dplyr")

library("here")
library("log4r")
library("zip")

library("tidyr")
library("ggplot2")
library("Capr")
library("testthat")

@JordiRodeiroSJD
Copy link
Author

I managed to use the renv.lock by deleting some of the included packages and it works. Thanks!

@tiozab
Copy link
Collaborator

tiozab commented Jul 11, 2024

@JordiRodeiroSJD which packages did you delete? this would be good to know in case another DP faces similar problems. thanks!

@JordiRodeiroSJD
Copy link
Author

I deleted packages V8, curl, gert, httpuv, openssl, and rJava from the renv.lock, and I used the versions that I had already installed locally without the renv. The versions I used are 4.3.3 (V8), 5.1.0 (curl), 2.0.1 (gert), 1.6.15 (httpuv), 2.1.1 (openssl), and 1.0.11 (rJava).

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

2 participants