Querying NCBI database in R

Enter the Accession number for fetching the sequence file, (Eaxmple: NC_001477)