What is the correct way to make a reprex that uses data read in from a local file?
Running reprex::reprex()
on a local file I get
TCGA_BRCA_mRNAex_annotation <- readr::read_csv("main/data/Data_TCGA_BrCa_RNASeq_Expression_Trends/TCGA_BRCA_mRNAex_annotation.csv")
#> Error: 'main/data/Data_TCGA_BrCa_RNASeq_Expression_Trends/TCGA_BRCA_mRNAex_annotation.csv' does not exist in current working directory ('/private/var/folders/xs/bp9xghmn1sdfp3h6yz2j389nq5fs7n/T/RtmptpOSoW').
Created on 2018-05-22 by the reprex package (v0.2.0).
because reprex
is using temp files. So what I've done is reprex::reprex(outfile = NA)
to make
TCGA_BRCA_mRNAex_annotation <- readr::read_csv("main/data/Data_TCGA_BrCa_RNASeq_Expression_Trends/TCGA_BRCA_mRNAex_annotation.csv")
#> Warning: Missing column names filled in: 'X1' [1]
#> Parsed with column specification:
#> cols(
#> X1 = col_double(),
#> X = col_double(),
#> Hugo_Symbol = col_character(),
#> Entrez_Gene_Id = col_double(),
#> Entrez_Gene_ID_0 = col_double(),
#> RefSeq_ID_0 = col_character(),
#> Accession_0 = col_character(),
#> Gene_symbol = col_character(),
#> SNP = col_double(),
#> CHR = col_double(),
#> BP = col_double(),
#> TCGAsymbolEQMETABRICsymbol = col_logical(),
#> refseqID = col_character(),
#> MatchingIlluminaProbeId = col_character()
#> )
Created on 2018-05-22 by the reprex package (v0.2.0).
but then now there are output files with extensions .R
, .html
, .md
, .utf8.md
, generated with names derived from tempfile()
. How do I get the reprex without having these files generated?