我正在尝试在Amazon Lightsail实例(Amazon Linux 2017.09.1)上运行的R中安装rJava包.我一直收到gcc找不到libgomp.spec的错误
我找到了/usr/lib/gcc/x86_64-amazon-linux/6.4.1/libgomp.spec的文件,我尝试设置一个符号链接,但我还没弄清楚在哪里放置符号链接,以便gcc可以找到它.例如,这似乎不起作用:
ln -s /usr/lib/gcc/x86_64-amazon-linux/6.4.1/libgomp.spec /usr/local/lib64/libgomp.spec
Run Code Online (Sandbox Code Playgroud)
有谁知道在哪里放置符号链接,所以gcc可以找到它?我不明白这个输出中可能有一个提示:
* installing *source* package ‘rJava’ ...
** package ‘rJava’ successfully unpacked and MD5 sums checked
checking for gcc... gcc -m64 -std=gnu99
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C …Run Code Online (Sandbox Code Playgroud) 我想在一个页面上有可变数量的相同 actionButton()s,全部由一个 observeEvent() 函数处理。
例如,在表格的可变长度表格中,我希望每个内部表格都有一个按钮,链接到该表格的更多信息。
在标准 HTML 中,您可以使用一个简单的表单来完成此操作,您可以在其中使用隐藏的输入来指定内部表格编号,如下所示:
<form ...>
<input id="table_number" type="hidden" value="1"/>
<input type="submit" value="Examine"/>
</form>
Run Code Online (Sandbox Code Playgroud)
当按下按钮时,您可以检查隐藏的输入以查看它是哪一个。
有没有办法在 Shiny 中做到这一点?我想出的唯一解决方案是给每个 actionButton() 自己的 inputId。这需要为每个按钮单独使用observeEvent()。那些必须提前创建,施加最大数量的按钮。
当我尝试将两个 FluidRows() 放入一个 output$variable 中时,我只得到最后一个:
> {fluidRow(class="a"); fluidRow(class="b")}
<div class="row b"></div>
Run Code Online (Sandbox Code Playgroud)
有没有一种方法可以将两行放入一个输出$变量中?