kassambara / fastqcr

fastqcr: Quality Control of Sequencing Data
http://www.sthda.com/english/rpkgs/fastqcr
67 stars 22 forks source link

qc_report cannot produce rmd due to permission issue #18

Open darkcircle opened 3 years ago

darkcircle commented 3 years ago

I am using fastqcr with R 4.1.0.

I tried to execute qc_report function for a single zip archive within my user's directory, but I have met a Error msg like below

List of 3
 $ fig.width : num 4
 $ fig.height: num 3.5
 $ fig.align : chr "center"

  |..................................................................    |  94%
  ordinary text without R code

  |....................................................................  |  97%
label: kmer-content (with options) 
List of 3
 $ fig.width : num 4
 $ fig.height: num 3.5
 $ fig.align : chr "center"

Error in file(file, ifelse(append, "a", "w")) : 
  cannot open the connection
Calls: qc_report ... element_text -> .handleSimpleError -> h -> cat -> file
In addition: Warning messages:
1: Missing column names filled in: 'X1' [1] 
2: In file(file, ifelse(append, "a", "w")) :
  cannot open file 'sample-report.knit.md': Permission denied

Execution halted

It says "permission problem" I could not find where above messages produced from yet. but when I tried to run as root. "Permission denied" message is disappeared.

I guess that there is invalid setting related on knitr. How can we resolve this problem?