小编Akr*_*iti的帖子

install.packages中的警告:软件包'tidyverse'的安装具有非零退出状态

我使用此网站作为参考:http: //r4ds.had.co.nz/introduction.html但我无法安装tidyverse包.使用dependencies = TRUE没有帮助.我还可以做些什么?

 installing *source* package ‘curl’ ...
** package ‘curl’ successfully unpacked and MD5 sums checked
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lcurl …
Run Code Online (Sandbox Code Playgroud)

r

24
推荐指数
2
解决办法
2万
查看次数

将工作表添加到本地工作簿 (js-xlsx)

(我使用这个页面https://github.com/SheetJS/js-xlsx作为我的 chrome 扩展。)

我在将工作表添加到本地工作簿时遇到问题。

我想用页面中的数据创建一个工作表,解析数据并将其保存到工作表中。此工作表应存储在已具有工作表的本地工作簿中。

目前我每次都创建一个新的工作簿,并且只保存在工作表上。这是用于创建工作表、将其添加到工作簿和下载工作簿的示例工作代码部分。

var title = "test";
var url = "xyz";

var data = [
    {"A": "Title", "B": title},
    {"A": "URL", "B": url},
  ];

var ws = XLSX.utils.json_to_sheet(data, {skipHeader:true});

var wb = XLSX.utils.book_new();

//Only 31 available characters at the name of the worksheet
while(title.length >= 32){
  title = title.substr(0, title.length-1);
}
var ws_name = title;

// Add the worksheet to the workbook 
XLSX.utils.book_append_sheet(wb, ws, ws_name);

//create and downloading workbook
XLSX.writeFile(wb, 'test.xlsx');
Run Code Online (Sandbox Code Playgroud)

如果有人知道将创建的工作表添加到现有的本地 xlsx 文件是如何工作的,我会很高兴。

javascript excel xlsx js-xlsx

6
推荐指数
0
解决办法
2573
查看次数

如何安排Docket的groupName在Swagger UI中显示的顺序

我在一个 Spring Boot 应用程序中设置两个不同的 Docket API。我给了一个 Docket“Test”groupName 并保留另一个,因此它最终在 Swagger UI 中成为“默认”。

我的问题是,如何在 UI 中排列这些 Dockets 的顺序。

起初我以为是按字母顺序排列的,但事实并非如此。我不断地改变名字,但顺序未知。

    @Bean
    public Docket myAPI(){
        Docket docket = new Docket(DocumentationType.SWAGGER_2)
            .select()
            .apis(RequestHandlerSelectors.basePackage("anything"))
            .paths(PathSelectors.regex("/v1/anything.*"))
            .build()
            .apiInfo(apiInfo());
        buildGlobalParameter(docket);
        buildGlobalResponseMessage(docket);
        return docket;
    }

    @Bean
    public Docket testAPI(){
        Docket tDocket = new Docket(DocumentationType.SWAGGER_2)
            .groupName("Test Card")
            .select()
            .apis(RequestHandlerSelectors.basePackage("anything"))
            .paths(PathSelectors.regex("/v1/anything2*"))
            .build()
            .apiInfo(apiTestInfo());
        buildGlobalParameter(tDocket);
        buildGlobalResponseMessage(tDocket);
        return tDocket;
    }

Run Code Online (Sandbox Code Playgroud)

https://i.stack.imgur.com/bAmNm.jpg

抱歉,我还不能发布图片,所以我留下直接的 URL。

当我运行 spring boot 应用程序时,我希望默认的 Swagger UI 显示为“默认”UI。

java swagger-ui spring-boot swagger-2.0 springfox

5
推荐指数
1
解决办法
2941
查看次数

标签 统计

excel ×1

java ×1

javascript ×1

js-xlsx ×1

r ×1

spring-boot ×1

springfox ×1

swagger-2.0 ×1

swagger-ui ×1

xlsx ×1