UD3-Lab / mintEMU

mintEMU - The Legacy of the European Postgraduate Master in Urbanism at TU Delft: A Text Mining Approach
Other
1 stars 0 forks source link

Path to be removed from the `convert_pdf_text() function #125

Closed alwil closed 1 year ago

alwil commented 1 year ago

The function currently includes the path to the python file that assumes the R package file structure which is not the case if the person installs the package.

the code needs to be adapted to s that python is available for the mintEMU users too.

See Use reticulate package in a function for details.

alwil commented 1 year ago

@Selkubi , once the issue is fixed, you might be interested in the paragraph about testing the functions which make use of Python dependencies

alwil commented 1 year ago

potential solution: https://rstudio.github.io/reticulate/articles/python_dependencies.html#automatic-configuration

alwil commented 1 year ago

Based on the system.file() function behaviour when using devtools (see here), It might be sufficient to call the virtual environment that already exists in the inst/ folder. Still have to figure out whether it will work if the user does not have anaconda/miniconda installed in their system.