Code
#{getwd()} 获取当前工作目录
library(readxl)
library(tidyverse)
library(knitr)
library(ggplot2)
library(ggthemes)
library(here)
library(showtext)
library(ggblanket)
set_blanket(
mode = dark_mode_r(),
font_family = "wqy-microhei",
theme = light_mode_r() + mode_orientation_to_x()
)
showtext_auto()
path <- getwd() #设置工作目录
file <- here(path, "scores.xlsx")
file[1] "/Users/alex/Rlearning/score_test/score_test/scores.xlsx"