kprotil / finalproject

0 stars 4 forks source link

Problem of making report #1

Open monicazhu opened 1 year ago

monicazhu commented 1 year ago

Here is the error when I tried to make install:

... Installing openssl [2.0.3] ... FAILED Error installing package 'openssl':


Here are the errors when I tried to synchronize my package repository

source("renv/activate.R") Error in file(filename, "r", encoding = encoding) : cannot open the connection In addition: Warning message: In file(filename, "r", encoding = encoding) : cannot open file 'renv/activate.R': No such file or directory

renv::restor() Error: 'restor' is not an exported object from 'namespace:renv'


Here are the errors when I tried to make the report:

(base) yijingzhudeMacBook-Pro:Karl_grading monica$ make Rscript code/01_data_cleaning.R ℹ Using R 4.1.2 (lockfile was generated with R 4.2.1) Error in loadNamespace(x) : there is no package called ‘here’ Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted make: *** [output/data_clean.rds] Error 1

(base) yijingzhudeMacBook-Pro:Karl_grading monica$ make report Rscript code/01_data_cleaning.R ℹ Using R 4.1.2 (lockfile was generated with R 4.2.1) Error in loadNamespace(x) : there is no package called ‘here’ Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted make: *** [output/data_clean.rds] Error 1

(base) yijingzhudeMacBook-Pro:Karl_grading monica$ make output/data_clean.rds Rscript code/01_data_cleaning.R ℹ Using R 4.1.2 (lockfile was generated with R 4.2.1) Error in loadNamespace(x) : there is no package called ‘here’ Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted make: *** [output/data_clean.rds] Error 1

I am really confused. Please let me know if there is any problem. Thank you.

kprotil commented 1 year ago

I'm not sure what exactly is going on here either. The only thing I noticed is that you typed renv::restor() instead of renv::restore(). Could you try that and see if it fixes the issue?

monicazhu commented 1 year ago

Sure. Here is the updates:

I tried renv::restore() again. Here is still an error. -------------------------- [ERROR MESSAGE] --------------------------- tools/version.c:1:10: fatal error: 'openssl/opensslv.h' file not found

include <openssl/opensslv.h>

     ^~~~~~~~~~~~~~~~~~~~

1 error generated.

ERROR: configuration failed for package ‘openssl’

Here is the error when I tried to make the report.

(base) yijingzhudeMacBook-Pro:Karl_grading monica$ make Rscript code/01_data_cleaning.R ℹ Using R 4.1.2 (lockfile was generated with R 4.2.1) Error in loadNamespace(x) : there is no package called ‘here’ Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted make: *** [output/data_clean.rds] Error 1